Skip to content

Commit 6d12db7

Browse files
author
github-actions
committed
Auto-merge updates from master branch
2 parents 691cfca + e59ce58 commit 6d12db7

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/gitleaks.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@ jobs:
1010
with:
1111
fetch-depth: 0
1212

13-
- uses: gitleaks/gitleaks-action@v2
14-
env:
15-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16-
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
13+
- name: Install gitleaks
14+
run: |
15+
set -euo pipefail
16+
GITLEAKS_VERSION="8.30.1"
17+
curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" \
18+
| tar -xz -C /usr/local/bin gitleaks
19+
gitleaks version
20+
21+
- name: Run gitleaks
22+
run: |
23+
gitleaks git \
24+
--log-opts="${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}" \
25+
--config .gitleaks.toml

0 commit comments

Comments
 (0)