Commit 9190943 1 parent 99883e9 commit 9190943 Copy full SHA for 9190943
File tree 1 file changed +25
-7
lines changed
1 file changed +25
-7
lines changed Original file line number Diff line number Diff line change 1
- name : code-scan
1
+ name : code-ql
2
2
3
3
on :
4
4
push :
14
14
- cron : ' 0 8 * * MON'
15
15
workflow_dispatch :
16
16
17
- permissions :
18
- actions : read
19
- contents : read
17
+ permissions : {}
20
18
21
19
jobs :
22
- code-ql :
23
-
20
+ analysis :
24
21
runs-on : ubuntu-latest
25
22
26
23
permissions :
24
+ actions : read
25
+ contents : read
27
26
security-events : write
28
27
29
28
strategy :
30
29
fail-fast : false
31
30
matrix :
32
- language : [ 'csharp' ]
31
+ language : [ 'actions', ' csharp' ]
33
32
34
33
steps :
35
34
- name : Checkout repository
48
47
uses : github/codeql-action/analyze@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
49
48
with :
50
49
category : ' /language:${{ matrix.language }}'
50
+
51
+ code-ql :
52
+ if : ${{ !cancelled() }}
53
+ needs : [ analysis ]
54
+ runs-on : ubuntu-latest
55
+
56
+ steps :
57
+ - name : Report status
58
+ shell : bash
59
+ env :
60
+ SCAN_SUCCESS : ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
61
+ run : |
62
+ if [ "${SCAN_SUCCESS}" == "true" ]
63
+ then
64
+ echo 'CodeQL analysis successful ✅'
65
+ else
66
+ echo '::error title=CodeQL::CodeQL analysis failed ❌'
67
+ exit 1
68
+ fi
You can’t perform that action at this time.
0 commit comments