Skip to content

Commit cf70da3

Browse files
committed
Fix Leaklens action failure
1 parent 26fa4d6 commit cf70da3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/leaklens.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
scan:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
security-events: write
1215
steps:
1316
- uses: actions/checkout@v4
1417
with:
@@ -27,9 +30,13 @@ jobs:
2730
run: pytest
2831

2932
- name: Run LeakLens report (SARIF)
33+
continue-on-error: true
3034
run: leaklens report --format sarif --output leaklens.sarif
3135

3236
- name: Upload SARIF
3337
uses: github/codeql-action/upload-sarif@v3
3438
with:
3539
sarif_file: leaklens.sarif
40+
41+
- name: Enforce secret policy
42+
run: leaklens scan . --fail-on high

0 commit comments

Comments
 (0)