security: add secret + code-injection scanner#39
Merged
Conversation
Adds scripts/security.sh (one-file security gate), scripts/SECURITY.md, a GitHub Actions security-scan workflow, and the security-review skill. The scanner flagged one pre-existing finding, a false positive: a NEXTAUTH_SECRET=test-secret-local placeholder in a playwright docs example (.agents/skills/.../nextjs.md). Annotated with a 'security.sh:allow' marker. No real secret present; nothing to rotate. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…tignored) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Adds the RozoAI one-file security gate to this repo as part of the org-wide supply-chain hardening.
What this adds
scripts/security.sh— one-file pre-commit / CI gate (secret-leak + build-config code-injection checks). Secret values are never printed, onlyfile:line.scripts/SECURITY.md— usage and remediation docs..github/workflows/security-scan.yml— runs the gate on every push and PR..github/skills/security-review/SKILL.md— review rules for high-risk diffs (force-added;.github/skills/is gitignored here).Scan result: 1 pre-existing finding, a false positive — a
NEXTAUTH_SECRET=test-secret-localplaceholder in a playwright docs example. Annotated with asecurity.sh:allowmarker. No real secret present, nothing to rotate. No code-injection patterns found.