Skip to content

Commit 4a1d761

Browse files
committed
feat(gitleaks): add flags for report-format and report-path, upload report as artifact
1 parent a3007a5 commit 4a1d761

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/gitleaks.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ jobs:
2121
run: git config --global --add safe.directory /path
2222

2323
- name: Detect
24-
run: gitleaks detect --source="/path"
24+
run: |
25+
gitleaks detect --source='/path' --report-format=json --report-path='/path/gitleaks-report.json'
26+
27+
- name: Upload Report
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: gitleaks-report-${{ github.sha }}
31+
path: /path/gitleaks-report.json

0 commit comments

Comments
 (0)