File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,23 +21,12 @@ jobs:
2121 with :
2222 fetch-depth : 0
2323
24- - name : Set up Go (for potential custom builds)
25- uses : actions/setup-go@v5
26- with :
27- go-version : ' 1.22'
28-
29- - name : Download gitleaks
30- run : |
31- curl -sSL https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks_$(uname -s)_$(uname -m).tar.gz -o gitleaks.tar.gz
32- tar -xzf gitleaks.tar.gz gitleaks
33- sudo mv gitleaks /usr/local/bin/
34- gitleaks version
35-
3624 - name : Run gitleaks
3725 id : gitleaks
38- run : |
39- set -e
40- gitleaks detect --config=.gitleaks.toml --report-format sarif --report-path gitleaks.sarif || echo "Gitleaks detected potential leaks (recorded in SARIF)"
26+ uses : gitleaks/gitleaks-action@v2
27+ with :
28+ config-path : .gitleaks.toml
29+ args : --report-format sarif --report-path gitleaks.sarif
4130
4231 - name : Upload SARIF to code scanning
4332 uses : github/codeql-action/upload-sarif@v3
You can’t perform that action at this time.
0 commit comments