Layer secret leak guardrails
Some checks failed
secret-guardrails / artifact-secret-scan (push) Has been cancelled
secret-guardrails / gitleaks (push) Has been cancelled

This commit is contained in:
Hermes Agent
2026-05-22 21:23:15 +00:00
parent 0b528cbb5f
commit d62a391cbf
5 changed files with 195 additions and 47 deletions

33
.github/workflows/secret-guardrails.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: secret-guardrails
on:
push:
pull_request:
jobs:
artifact-secret-scan:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Make scanner executable
run: chmod +x scripts/scan-secret-bearing-artifacts.sh
- name: Scan all tracked infra artifacts for embedded secrets
run: scripts/scan-secret-bearing-artifacts.sh --tracked
gitleaks:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}