-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (33 loc) · 970 Bytes
/
codeql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "CodeQL"
on:
pull_request:
branches:
- main
schedule:
- cron: '31 10 * * 0'
permissions:
contents: read
jobs:
codeql:
name: CodeQL
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
go: [ '1.21', '1.20' ]
steps:
- name: Checkout repository
uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # pin@master
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@6f5223db54afb6bccb7b88162896588caa1f611b # pin@master
with:
languages: go
- name: Autobuild
uses: github/codeql-action/autobuild@6f5223db54afb6bccb7b88162896588caa1f611b # pin@master
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@6f5223db54afb6bccb7b88162896588caa1f611b # pin@master