File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,15 +53,30 @@ jobs:
5353 bandit -r memory_arena/ -ll
5454
5555 # gitleaks: scan repo for committed secrets. Hard fail on findings.
56+ #
57+ # This calls the gitleaks binary rather than gitleaks/gitleaks-action. On
58+ # 2026-08-06 GitHub's action-resolution service returned Service Unavailable
59+ # for that action across five attempts over an hour, while every actions/*
60+ # step in the other jobs resolved. The job never reached the scan, so a red
61+ # check meant nothing. The binary removes that dependency and keeps the gate.
5662 gitleaks :
5763 runs-on : ubuntu-latest
64+ env :
65+ GITLEAKS_VERSION : " 8.30.1"
5866 steps :
5967 - uses : actions/checkout@v5
6068 with :
6169 fetch-depth : 0
62- - uses : gitleaks/gitleaks-action@v3
63- env :
64- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70+ - name : Install gitleaks
71+ run : |
72+ set -euo pipefail
73+ curl -sSfL -o /tmp/gitleaks.tar.gz \
74+ "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz"
75+ tar -xzf /tmp/gitleaks.tar.gz -C /tmp gitleaks
76+ sudo install -m 0755 /tmp/gitleaks /usr/local/bin/gitleaks
77+ gitleaks version
78+ - name : Scan committed history for secrets
79+ run : gitleaks git --redact --no-banner --exit-code 1 .
6580
6681 frontend :
6782 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments