Skip to content

ci(gitleaks): add secret-scan workflow (BYO-keys trust signal)#26

Merged
ernestprovo23 merged 2 commits into
mainfrom
ci/pr-d-gitleaks
Jun 9, 2026
Merged

ci(gitleaks): add secret-scan workflow (BYO-keys trust signal)#26
ernestprovo23 merged 2 commits into
mainfrom
ci/pr-d-gitleaks

Conversation

@ernestprovo23

Copy link
Copy Markdown
Member

Summary

  • Adds .github/workflows/gitleaks.yml triggered on push to main and all PRs
  • Uses gitleaks/gitleaks-action@v2 with fetch-depth: 0 for full history scan
  • Hard-fail: any detected secret causes the gitleaks check to fail, blocking merge

Why this matters

Conclave is a BYO-keys tool — keys are read from env vars and never stored. The
gitleaks scan is the headline trust signal for public users and contributors that
no credentials can land in the tree undetected.

Test plan

  • gitleaks check passes (clean repo — no secrets in history or working tree)
  • All existing pytest and ruff checks still pass

Uses gitleaks/gitleaks-action@v2 with full history fetch (fetch-depth=0)
to scan for leaked secrets. Hard-fail check — this is the BYO-keys trust
signal: conclave reads keys from env vars only and this gate enforces that
no credentials ever land in the tree.
gitleaks-action@v2 calls the GitHub API to list PR commits but requires
pull_requests=read which the default token doesn't grant without an explicit
permissions block. v3 also resolves the Node.js 20 deprecation warning.
@ernestprovo23
ernestprovo23 merged commit fbf6775 into main Jun 9, 2026
5 checks passed
@ernestprovo23
ernestprovo23 deleted the ci/pr-d-gitleaks branch June 10, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant