File tree 1 file changed +20
-4
lines changed
1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 18
18
# If more paths are added here, then they must be added to the paths
19
19
# of codeql-analysis-noop.yml.
20
20
- " **/*.yml"
21
- - ' **/*.md'
21
+ - " **/*.md"
22
22
pull_request :
23
23
# The branches below must be a subset of the branches above
24
24
branches : [main]
25
25
paths-ignore :
26
26
- " **/*.yml"
27
- - ' **/*.md'
27
+ - " **/*.md"
28
28
schedule :
29
29
- cron : " 21 0 * * 2"
30
30
31
31
permissions : read-all
32
32
33
33
jobs :
34
- analyze :
35
- name : Analyze
34
+ analyze-matrix :
35
+ name : Analyze Matrix
36
36
runs-on : ubuntu-latest
37
37
permissions :
38
38
actions : read
79
79
80
80
- name : Perform CodeQL Analysis
81
81
uses : github/codeql-action/analyze@b398f525a5587552e573b247ac661067fafa920b # tag=v2.1.22
82
+
83
+ # NOTE: Checks that the matrix job above completes successfully.
84
+ # This is necessary because the matrix strategy generates new jobs with
85
+ # different names and throws off the required checks on protected
86
+ # branches which are set by job name.
87
+ analyze :
88
+ name : Analyze
89
+ runs-on : ubuntu-latest
90
+ needs : [analyze-matrix]
91
+ if : ${{ always() }}
92
+ env :
93
+ ANALYZE_RESULT : ${{ needs.analyze-matrix.result }}
94
+ steps :
95
+ - run : |
96
+ # exit 0 if checks were successful.
97
+ [ "${ANALYZE_RESULT}" == "success" ]
You can’t perform that action at this time.
0 commit comments