File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -18,28 +18,25 @@ jobs:
18
18
contents : read
19
19
security-events : write
20
20
21
+ strategy :
22
+ fail-fast : false
23
+ matrix :
24
+ language : [ 'javascript', 'typescript' ]
25
+
21
26
steps :
22
27
- name : Checkout repository
23
28
uses : actions/checkout@v4
24
29
25
30
- name : Initialize CodeQL
26
31
uses : github/codeql-action/init@v2
27
32
with :
28
- languages : ' typescript ' # Or 'python', 'typescript', etc.
33
+ languages : ${{ matrix.language }}
29
34
debug : true
30
35
31
- - name : CodeQL Analysis for Directory
32
- run : |
33
- echo "Scanning directory: src"
34
- codeql database create db-src --language=javascript --source-root=src # Modify language and directory accordingly
35
-
36
36
- name : Perform CodeQL Analysis
37
37
uses : github/codeql-action/analyze@v2
38
38
with :
39
- category : " /language:javascript-src"
40
- output : results-src.sarif
39
+ category : " language:${{ matrix.language }}"
41
40
42
41
- name : Upload SARIF to GitHub Security
43
42
uses : github/codeql-action/upload-sarif@v2
44
- with :
45
- sarif_file : results-src.sarif
You can’t perform that action at this time.
0 commit comments