Skip to content

Commit 90156e3

Browse files
committed
modified upload results to sarif_file
1 parent 7a942a7 commit 90156e3

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/test.yml

+15-6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
contents: read
1919

2020
steps:
21+
22+
23+
2124
- name: Set up Node.js
2225
uses: actions/setup-node@v4
2326
with:
@@ -29,32 +32,38 @@ jobs:
2932
- name: Check JavaScript files
3033
run: find src -name "*.js" || echo "No JavaScript files found"
3134

35+
3236
- name: Initialize CodeQL
3337
uses: github/codeql-action/init@v3
3438
with:
3539
languages: javascript
40+
source=root: scr
41+
42+
3643

3744
- name: Autobuild
3845
uses: github/codeql-action/autobuild@v3
3946

4047
- name: Run CodeQL Custom Queries
4148
uses: github/codeql-action/analyze@v3
4249
with:
43-
category: "custom-query-analysis"
44-
queries: .github/queries
50+
category: "custom-query-analysis"
51+
queries: .github/queries
52+
output: ./results/security-results.sarif
4553

54+
4655
- name: List files in results directory
4756
run: ls -la ./results || echo "Results directory not found"
4857

58+
4959
- name: Find SARIF Files
5060
run: find . -name "*.sarif" || echo "No SARIF files found"
5161

5262
- name: Upload CodeQL SARIF Results
53-
uses: actions/upload-artifact@v4
63+
uses: actions/upload-sarif@v3
5464
with:
55-
name: codeql-custom-results
56-
path: ./results/security-results.sarif
57-
65+
sarif_file: rsults.sarif
66+
category: Green Python
5867

5968

6069

0 commit comments

Comments
 (0)