fix: run gitleaks via container instead of broken binary download
Some checks failed
ci / secrets (push) Successful in 10s
ci / test (push) Successful in 19s
ci / build (push) Failing after 11s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
user
2026-02-21 17:41:39 +01:00
parent 64f3fedb9f
commit 56db4d26da

View File

@@ -23,9 +23,10 @@ jobs:
with:
fetch-depth: 0
- run: |
curl -sSfL https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks_8.24.0_linux_x64.tar.gz \
| tar xz -C /usr/local/bin gitleaks
- run: gitleaks detect --source . -v
docker run --rm \
-v "$PWD:/scan:ro" \
ghcr.io/gitleaks/gitleaks:latest \
detect --source /scan -v
build:
needs: [test, secrets]