Skip to content

feat: secret scan before a commit and in CI - #4

Merged
gaffercode merged 1 commit into
mainfrom
chore/secret-scan-2026-11-21
Nov 21, 2026
Merged

gaffercode merged 1 commit into
mainfrom
chore/secret-scan-2026-11-21

Conversation

@gaffercode

Copy link
Copy Markdown
Owner

What

The owner approved a pre-commit secret scan on 2026-11-21.

  • scripts/secret-scan.mjs: zero dependencies (Node and Git). Refuses token formats, private keys, JSON Web Tokens, database URLs with a password, filled secrets in configuration files, and local data files by name (env files, keys, databases, dumps). It names the file, the line and the rule; it never prints the value.
  • .githooks/pre-commit: runs it on staged content. Install once per clone: git config core.hooksPath .githooks.
  • CI: a Secret scan step in the Lint job runs it over every tracked file.
  • app/secret-scan.test.mjs: 7 tests that run the scanner in a temporary Git repository. All 7 failed before the script existed.
  • Docs: docs/security.md, docs/testing.md, README.md, handoff and verification notes.

No runtime file changed.

Verified locally

lint and typecheck exit 0; test 70/70; the scanner over the whole tree reports no findings.

Not run

build, deploy:dry-run, test:e2e, live Vera.


Generated by Claude Code

scripts/secret-scan.mjs refuses secrets (token formats, private keys,
JSON Web Tokens, database URLs with a password, filled secrets in
configuration files) and local data files (env files, keys, databases,
dumps). It never prints the value it found and needs only Node and Git.
.githooks/pre-commit runs it on staged content once the clone sets
core.hooksPath; the CI Lint job runs it over every tracked file. Seven
tests run it for real in a temporary Git repository.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012ta9C9QGH3qLAAqc7fEucC
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentraverse Ready Ready Preview Nov 21, 2026 11:06am UTC

Request Review

@gaffercode
gaffercode merged commit 47b1b56 into main Nov 21, 2026
5 checks passed
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.

2 participants