Skip to content

Secret scan hardening (follow-ups from #214) #239

Closed

Description

@scuttletoby

Follow-ups from the round-2 lenses on #214 (secret scan, merged as e6d6b28). None blocking; all hardening.

  1. Rules check is a substring test. The "rules are gitleaks' defaults byte for byte" check uses binary.find, so a settings PR that keeps only an unbroken slice of the default rules passes. Compare the full rule id list instead.
  2. Vanished [skip ci] pushes. A [skip ci] push to a non-PR branch that is force-pushed away or deleted before the sweep runs is never scanned (the sweep reads current refs only). Read the activity record for every ref, or list it under "Not covered" in the README.
  3. Shallow checkout under-scans silently. Exit 2 when git rev-parse --is-shallow-repository prints true.
  4. Duplicate alert issues. Two overlapping failed runs can each open an alert issue: add a concurrency group, and filter by title before --limit 100.
  5. Canary allowlist false alarm. The exact canary-version allowlist value can false-alarm on a future pre-release bump of a package with "key" in its name. Documented trade-off; mention it in release notes.
  6. Missing guard file. fork-run-alert.sh sources the gh guard without an existence check; fail with a clear message instead.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions