File tree Expand file tree Collapse file tree 1 file changed +26
-7
lines changed Expand file tree Collapse file tree 1 file changed +26
-7
lines changed Original file line number Diff line number Diff line change 1
- name : code-scan
1
+ name : codeql
2
2
3
3
on :
4
4
push :
10
10
- dotnet-nightly
11
11
schedule :
12
12
- cron : ' 0 6 * * 1'
13
+ workflow_dispatch :
13
14
14
- permissions :
15
- actions : read
16
- contents : read
15
+ permissions : {}
17
16
18
17
jobs :
19
- code-ql :
20
-
18
+ analysis :
21
19
runs-on : ubuntu-latest
22
20
23
21
permissions :
22
+ actions : read
23
+ contents : read
24
24
security-events : write
25
25
26
26
strategy :
27
27
fail-fast : false
28
28
matrix :
29
- language : [ 'csharp', 'javascript' ]
29
+ language : [ 'actions', ' csharp', 'javascript' ]
30
30
31
31
steps :
32
32
- name : Checkout repository
43
43
uses : github/codeql-action/analyze@v3
44
44
with :
45
45
category : ' /language:${{ matrix.language }}'
46
+
47
+ codeql :
48
+ if : ${{ !cancelled() }}
49
+ needs : [ analysis ]
50
+ runs-on : ubuntu-latest
51
+
52
+ steps :
53
+ - name : Report status
54
+ shell : bash
55
+ env :
56
+ SCAN_SUCCESS : ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
57
+ run : |
58
+ if [ "${SCAN_SUCCESS}" == "true" ]
59
+ then
60
+ echo 'CodeQL analysis successful ✅'
61
+ else
62
+ echo 'CodeQL analysis failed ❌'
63
+ exit 1
64
+ fi
You can’t perform that action at this time.
0 commit comments