chore(devsecops): enable secret-scan PR gate - #1
Open
intelligentinfrateam wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable secret-scan PR gate
This PR adds two files:
.github/workflows/secret-scan-pr.yml— runs gitleaks on the diff ofeach pull request and fails the build if a secret is committed.
Scans only the new commits in the PR, not the full repo history, so
it does not block PRs over pre-existing material.
.gitleaks.toml— Plaud-AI baseline config: inherits the upstreamruleset (AWS, Stripe, GitHub, Slack, OpenAI, Sentry, ...) and
allowlists lockfiles, test fixtures, docs, build artifacts, and
obvious placeholder values.
What changes for contributors
.gitleaks.tomlin thesame PR with a one-line comment explaining why it is safe.
mainare untouched here; they are tracked by theorg-wide history scan and rotated separately.
How to verify before merging
Push a throwaway commit to this branch with a fake AWS key:
AKIAIOSFODNN7EXAMPLEis allowlisted (vendor example) → CI green.AKIA1A2B3C4D5E6F7G8H(any other AKIA-shape) → CI red.Revert before merge.
Why
Org-wide DevSecOps Phase 2. The Phase 1 history scan found hardcoded
secrets across multiple repos; this gate stops new ones being added
while the backlog is rotated.
Questions: ping the DevSecOps owner in
#security-incidents.🤖 Automated rollout — safe to close + reopen later if you want CI to re-run.