Skip to content

ci: server-side secret scan on every push and pull request - #5804

Merged
mmabrouk merged 2 commits into
release/v0.110.0from
ci-secret-scan
Aug 7, 2026
Merged

ci: server-side secret scan on every push and pull request#5804
mmabrouk merged 2 commits into
release/v0.110.0from
ci-secret-scan

Conversation

@mmabrouk

@mmabrouk mmabrouk commented Aug 7, 2026

Copy link
Copy Markdown
Member

Context

The repo runs gitleaks only in local hooks (husky pre-commit and pre-push). Those guard commits a human types. Commits created by tooling and pushed by other plumbing bypass them entirely: that is how four conflicted commits carrying ~50k-file tree copies reached the release branch unscanned this week, found first by a coworker's manual scan. The trees contained no real secrets (verified with gitleaks itself), but nothing in the pipeline would have caught it if they had.

Changes

One workflow: on every push and every pull request, install gitleaks and scan exactly the pushed or proposed commit range with the repo's existing .gitleaks.toml. The server sees every commit regardless of what created it, which closes the bypass class. New branches scan their whole history relative to the default branch, so nothing arrives unscanned.

Tests

The workflow runs on this PR itself as its first execution. The scan range logic covers the three event shapes (PR, push to existing branch, push of a new branch).

… gitleaks hook only guards commits a human types; commits created by tooling and pushed by other plumbing bypass it entirely, which is how four conflicted commits carrying full tree copies reached a release branch unscanned. This job scans the pushed range server-side with the repo's existing .gitleaks.toml, so origin does not matter.
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview Aug 7, 2026 5:33pm

Request Review

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. ci/cd labels Aug 7, 2026
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c8b130fd-dfad-4343-b672-dac3673e470d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…write deliberate high-entropy marker strings (QA-CWD-*, QA-APPROVE-*) into committed run records to prove storage round trips; the new server-side scan's first branch run flagged three of them as generic API keys. Test artifacts, not credentials; verified by reproducing the scan and reading each finding.
@mmabrouk
mmabrouk merged commit c3fb76e into release/v0.110.0 Aug 7, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant