Skip to content

Commit 2cd0cdc

Browse files
committed
correct ql file
1 parent cf7cdfe commit 2cd0cdc

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/test.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
- name: Initialize CodeQL
2525
uses: github/codeql-action/init@v3
2626
with:
27-
languages: javascript # Adjust as needed (python, java, go, etc.)
27+
languages: javascript # Adjust based on your repo's language
2828

2929
- name: Run CodeQL Custom Queries
3030
uses: github/codeql-action/analyze@v3
3131
with:
32-
category: "custom-query-analysis" # Unique category for this analyze action
33-
queries: .github/queries # Ensure this path is correct
34-
output: ./results/security-results.sarif # Explicit output path for SARIF file
32+
category: "custom-query-analysis" # Unique category for analyze step
33+
queries: .github/queries # Path to your custom queries
34+
output: ./results/security-results.sarif # Explicit output location for SARIF file
3535

3636
# ✅ Debug Step: Verify Output Directory and File
3737
- name: List files in results directory
@@ -41,22 +41,23 @@ jobs:
4141
- name: Find SARIF Files
4242
run: find . -name "*.sarif" || echo "No SARIF files found"
4343

44-
# ✅ Upload CodeQL SARIF Results (Use a Different Category)
44+
# ✅ Upload CodeQL SARIF Results (With unique category)
4545
- name: Upload CodeQL SARIF Results
4646
uses: actions/upload-artifact@v4
4747
with:
4848
name: codeql-custom-results
4949
path: ./results/security-results.sarif
5050

51-
# ✅ Upload SARIF to GitHub Security Alerts (Unique category for upload)
51+
# ✅ Upload SARIF to GitHub Security Alerts (With a different unique category)
5252
- name: Upload SARIF to GitHub Security Tab
5353
uses: github/codeql-action/upload-sarif@v3
5454
with:
55-
category: "custom-query-upload" # Unique category for the upload step
55+
category: "custom-query-upload" # Ensure this category is unique
5656
sarif_file: ./results/security-results.sarif
5757

5858

5959

60+
6061

6162

6263

0 commit comments

Comments
 (0)