Skip to content

Add local secret-scan mode for untracked files #80

@jmcte

Description

@jmcte

Context

The security best-practices report identified that scripts/check-detect-secrets.sh scans staged files or tracked files, but not untracked non-ignored files in normal all-files mode. That leaves a local gap before accidental credential templates, logs, SQLite files, or caches are staged.

Evidence

  • scripts/check-detect-secrets.sh:31-40 uses git diff --cached ... for staged mode and git ls-files -z otherwise.
  • Untracked non-ignored files are not included until staged.
  • docs/privacy-redaction-boundaries.md:111-116 forbids local auth files, cookies, tokens, generated stores, caches, logs, and database files in the repo.

Acceptance criteria

  • Add an opt-in local scan mode that includes untracked non-ignored files, for example by incorporating git ls-files --others --exclude-standard -z.
  • Keep the existing cheap CI/tracked-file behavior available.
  • Add focused tests or script-level validation covering tracked, staged, and untracked scan behavior.
  • Document when developers should use the broader local mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions