File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CodeQL
2+
3+ on :
4+ push :
5+ branches : [ "master", "main" ]
6+ pull_request :
7+ schedule :
8+ - cron : ' 00 5 * * 1'
9+
10+ permissions : {}
11+
12+ jobs :
13+ analyze :
14+ name : Analyze
15+ runs-on : ubuntu-latest
16+ permissions :
17+ actions : read
18+ contents : read
19+ security-events : write
20+
21+ strategy :
22+ fail-fast : false
23+ matrix :
24+ language : [ 'go' ]
25+
26+ steps :
27+ - name : Checkout code
28+ uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
29+
30+ # Initializes the CodeQL tools for scanning.
31+ - name : Initialize CodeQL
32+ uses : github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
33+ with :
34+ languages : ${{ matrix.language }}
35+ # xref: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
36+ # xref: https://codeql.github.com/codeql-query-help/go/
37+ queries : security-and-quality
38+
39+ - name : Manual Build
40+ run : go build ./...
41+
42+ - name : Perform CodeQL Analysis
43+ uses : github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
44+ with :
45+ category : " /language:${{matrix.language}}"
You can’t perform that action at this time.
0 commit comments