Skip to content

build(security): scan commits for secrets - #27

Merged
xgame92 merged 3 commits into
mainfrom
devin/1796379000-secret-scan
Dec 3, 2026
Merged

xgame92 merged 3 commits into
mainfrom
devin/1796379000-secret-scan

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Part of SEC-31. Adds the pinned gitleaks workflow, the shared config copy from ops#62, and the install-time pre-commit hook. The scan covers reachable PR/main history, including merge diffs; the hook never overrides existing hooks.

The current shared config copy has sha256 de3baf8bfe1da2212340521c0eff5c041854f6cf0aa2c06613c1804915247727 and contains no tracked environment-file exception. ops#62 should land first so the copied config checksum equals the ops file.

How it was tested

  • pnpm verify passes
  • Tests cover the change (every bug fix has a test that fails without it)

Before the later config-only refreshes, pnpm install installed the hook stub, pnpm verify passed, the staged hook reported no leaks, and the pinned history scan reported no leaks. Hosted CI validates the current head.

Safety

  • Nothing is created or changed in a Cloudflare account before it is shown and confirmed
  • No secret reaches the screen, a log or the working directory

Link to Devin session: https://app.devin.ai/sessions/d1893600300c445ba5dc12c870373e42
Open in Devin Desktop: https://app.devin.ai/desktop/session/d1893600300c445ba5dc12c870373e42?variant=devin
Requested by: @[REDACTED SECRET]

Add the pinned secret scanner to CI and install the staged-changes hook during package installation so leaked credentials are caught before they reach the repository history.
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Pick up the shared fixture exceptions so this copy stays byte-identical with the scanner config rolling out in ops.
Keep the shared scanner config byte-identical while removing tracked environment file paths from a comment so rollout checks do not read them as exceptions.
@xgame92
xgame92 merged commit 5dd323f into main Dec 3, 2026
5 checks passed
@xgame92
xgame92 deleted the devin/1796379000-secret-scan branch December 3, 2026 21:32
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant