Skip to content

Commit 3ea1171

Browse files
committed
fix(ci): upload slither-hacks SARIF to satisfy Code Scanning config
- Restore slither-hacks SARIF upload to GitHub Code Scanning (separate category) - Add security-events: write permission for hacks job Made-with: Cursor
1 parent ecfeb5a commit 3ea1171

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/slither.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
runs-on: ubuntu-latest
6363
permissions:
6464
contents: read
65+
security-events: write
6566

6667
steps:
6768
- name: Checkout repository
@@ -87,6 +88,13 @@ jobs:
8788
sarif: slither-hacks.sarif
8889
fail-on: none
8990

91+
- name: Upload hacks SARIF to GitHub Code Scanning
92+
uses: github/codeql-action/upload-sarif@v4
93+
if: always() && hashFiles('slither-hacks.sarif') != ''
94+
with:
95+
sarif_file: ${{ steps.slither-hacks.outputs.sarif }}
96+
category: slither-hacks
97+
9098
- name: Upload hacks SARIF as artifact
9199
uses: actions/upload-artifact@v4
92100
if: always() && hashFiles('slither-hacks.sarif') != ''

0 commit comments

Comments
 (0)