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 11name : " CodeQL Analysis"
22
33on :
4+ # Makes the workflow reusable / callable from other workflows
45 workflow_call :
6+ workflow_dispatch :
57
68jobs :
79 create-matrix :
810 runs-on : ubuntu-latest
911 outputs :
1012 matrix : ${{ steps.set-matrix.outputs.languages }}
1113 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
1216 - name : Get languages from repo
1317 id : set-matrix
1418 uses : advanced-security/set-codeql-language-matrix@v1
1822
1923 analyze :
2024 needs : create-matrix
25+ # Check if there are no CodeQL supported languages
2126 if : ${{ needs.create-matrix.outputs.matrix != '[]' }}
2227 name : Analyze
2328 runs-on : ubuntu-latest
2833
2934 strategy :
3035 fail-fast : false
31- matrix :
36+ matrix :
37+ # Create a matrix build for all supported languages
3238 language : ${{ fromJSON(needs.create-matrix.outputs.matrix) }}
3339
3440 steps :
You can’t perform that action at this time.
0 commit comments