File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " CodeQL"
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+ schedule :
9
+ - cron : ' 34 11 * * 3'
10
+
11
+ jobs :
12
+ analyze :
13
+ name : Analyze
14
+ runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15
+ timeout-minutes : ${{ (matrix.language == 'swift' && 120) || 360 }}
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 repository
28
+ uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
29
+
30
+ # Custom Go version because of: https://github.com/github/codeql/issues/13992#issuecomment-1711721716
31
+ - uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5
32
+ with :
33
+ go-version : ' 1.22'
34
+
35
+ - name : Initialize CodeQL
36
+ uses : github/codeql-action/init@ccf74c947955fd1cf117aef6a0e4e66191ef6f61 # v3
37
+ with :
38
+ languages : ${{ matrix.language }}
39
+
40
+ - name : Perform CodeQL Analysis
41
+ uses : github/codeql-action/analyze@ccf74c947955fd1cf117aef6a0e4e66191ef6f61 # v3
42
+ with :
43
+ category : " /language:${{matrix.language}}"
You can’t perform that action at this time.
0 commit comments