Skip to content

Commit 6585a3c

Browse files
committed
for testing5
1 parent 5da59b6 commit 6585a3c

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/codeql-codescan.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,25 @@ jobs:
1818
contents: read
1919
security-events: write
2020

21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'javascript', 'typescript' ]
25+
2126
steps:
2227
- name: Checkout repository
2328
uses: actions/checkout@v4
2429

2530
- name: Initialize CodeQL
2631
uses: github/codeql-action/init@v2
2732
with:
28-
languages: 'typescript' # Or 'python', 'typescript', etc.
33+
languages: ${{ matrix.language }}
2934
debug: true
3035

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-
3636
- name: Perform CodeQL Analysis
3737
uses: github/codeql-action/analyze@v2
3838
with:
39-
category: "/language:javascript-src"
40-
output: results-src.sarif
39+
category: "language:${{ matrix.language }}"
4140

4241
- name: Upload SARIF to GitHub Security
4342
uses: github/codeql-action/upload-sarif@v2
44-
with:
45-
sarif_file: results-src.sarif

0 commit comments

Comments
 (0)