Skip to content

Commit bcbd5db

Browse files
chore: fix github action
1 parent cde9577 commit bcbd5db

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

.github/workflows/secret-scan.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)