Files
claudeandClaude Opus 5.5 ef693ffd97 G9: reusable gitleaks secret scan, config and docs
Add a reusable workflow that downloads a pinned, checksum-verified gitleaks
and scans the pushed commits, the PR's commits, or the current tree. Logs
show only a count, never the rule, file, line or value, because the logs
are public. This repo's caller is manual-only until S8 passes.

.gitleaks.toml extends the default rules and allowlists Helm checksum/*
annotations. docs/ci-cd/secret-scanning.md covers usage, what to do when it
fails, and the policy for history scans (done privately, not in CI).

Tested locally by running the step verbatim in a container against
throwaway repos: a planted fake token fails on push, new-branch push and PR;
clean ranges, checksum annotations and this repo's tree pass; a bad
checksum fails; the value never appears in the output. actionlint and
yamllint pass.

Refs DevOps/software-infrastructure#57

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:44:40 -05:00

24 lines
503 B
YAML

# Secret scan for this repo. DevOps/software-infrastructure#57 (G9).
#
# Manual-only for now: the shared runner is still being stabilised (S3-S8,
# #36-#41). After S8 passes, replace the trigger with:
#
# push:
# branches: [main]
# pull_request:
#
# A manual run scans the current tree, not history.
name: secret-scan
on:
workflow_dispatch:
concurrency:
group: secret-scan-${{ github.ref }}
cancel-in-progress: true
jobs:
scan:
uses: ./.gitea/workflows/reusable-secret-scan.yaml