cauldron/.forgejo/workflows/gitleaks.yml
Sulkta 8a410b0c3c docs: public-facing README + generic configuration docs
Rewrite the README for external users, neutralize example identities in
code comments, generalize the OIDC group note, and simplify the gitleaks
workflow header.
2026-06-28 13:25:25 -07:00

30 lines
832 B
YAML

# Scans the repository for committed secrets with gitleaks on every push and
# pull request. Make it a required status check in branch-protection rules to
# block merges that introduce credentials.
name: gitleaks
on:
push:
pull_request:
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Full history — gitleaks needs depth to scan a commit range.
fetch-depth: 0
- name: install gitleaks
run: |
curl -sSL -o gl.tar.gz \
https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_linux_x64.tar.gz
tar xzf gl.tar.gz gitleaks
chmod +x gitleaks
./gitleaks version
- name: scan
run: |
./gitleaks detect --source . --no-banner --redact --verbose