fix: run gitleaks via podman on host instead of container directive
Some checks failed
CI / secrets (push) Failing after 1s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 26s
CI / build (push) Has been skipped

The gitleaks image lacks a shell compatible with the runner's
script injection. Use podman run with volume mount on the host
instead, matching the proven s5p pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
user
2026-02-22 07:43:36 +01:00
parent 875997aa45
commit e9c8290f9c

View File

@@ -42,14 +42,16 @@ jobs:
secrets:
runs-on: linux
container:
image: ghcr.io/gitleaks/gitleaks:latest
options: --entrypoint ""
steps:
- name: Checkout
run: git clone --branch "${GITHUB_REF_NAME}" "https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Scan for secrets
run: gitleaks detect --source . -v
run: |
podman run --rm \
-v "$PWD:/scan:ro" \
ghcr.io/gitleaks/gitleaks:latest \
detect --source /scan -v
build:
runs-on: linux