Skip to content

Commit d949aa6

Browse files
committed
reset scanning alerts
1 parent b6ab644 commit d949aa6

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/codacy.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,18 @@ jobs:
5555
max-allowed-issues: 2147483647
5656

5757
# Upload the SARIF file generated in the previous step
58-
- name: Upload SARIF results file
58+
#- name: Upload SARIF results file
59+
# uses: github/codeql-action/upload-sarif@v3
60+
# with:
61+
# sarif_file: results.sarif
62+
63+
# --- NEW: Reset GitHub Code Scanning alerts it suck on github, use the codacy app ---
64+
- name: Reset GitHub Code Scanning alerts
65+
run: |
66+
echo '{"$schema":"https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0.json","version":"2.1.0","runs":[]}' > empty.sarif
67+
shell: bash
68+
69+
- name: Upload empty SARIF
5970
uses: github/codeql-action/upload-sarif@v3
6071
with:
61-
sarif_file: results.sarif
72+
sarif_file: empty.sarif

0 commit comments

Comments
 (0)