1 parent 35a9c99 commit 93f267eCopy full SHA for 93f267e
1 file changed
.github/workflows/gitleaks.yml
@@ -10,12 +10,19 @@ permissions:
10
jobs:
11
gitleaks:
12
runs-on: ubuntu-latest
13
+ env:
14
+ GITLEAKS_VERSION: 8.30.0
15
steps:
- - uses: actions/checkout@v4
16
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
17
with:
18
fetch-depth: 0
19
- - name: Run gitleaks
- uses: gitleaks/gitleaks-action@v2
20
- env:
21
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Install gitleaks
+ run: |
22
+ curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" \
23
+ | tar -xz gitleaks
24
+ sudo mv gitleaks /usr/local/bin/gitleaks
25
+ gitleaks version
26
+
27
+ - name: Run gitleaks (working tree)
28
+ run: gitleaks detect --no-git --redact --verbose --exit-code 1
0 commit comments