File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : " CodeQL Analysis"
2
2
3
3
on :
4
+ # Makes the workflow reusable / callable from other workflows
4
5
workflow_call :
6
+ workflow_dispatch :
5
7
6
8
jobs :
7
9
create-matrix :
8
10
runs-on : ubuntu-latest
9
11
outputs :
10
12
matrix : ${{ steps.set-matrix.outputs.languages }}
11
13
steps :
14
+ # This step gets the languages for the repository and creates a supported
15
+ # CodeQL language list that gets passed into the analyze step
12
16
- name : Get languages from repo
13
17
id : set-matrix
14
18
uses : advanced-security/set-codeql-language-matrix@v1
18
22
19
23
analyze :
20
24
needs : create-matrix
25
+ # Check if there are no CodeQL supported languages
21
26
if : ${{ needs.create-matrix.outputs.matrix != '[]' }}
22
27
name : Analyze
23
28
runs-on : ubuntu-latest
28
33
29
34
strategy :
30
35
fail-fast : false
31
- matrix :
36
+ matrix :
37
+ # Create a matrix build for all supported languages
32
38
language : ${{ fromJSON(needs.create-matrix.outputs.matrix) }}
33
39
34
40
steps :
You can’t perform that action at this time.
0 commit comments