Skip to content

Report a Secret Unclaimed in the Store That Does Not Owe It #3939

Closed

Description

@ptr727

secret_names.compare_stores reports a live secret as unclaimed only when no store claims it. It tests present - (required["actions"] | required["dependabot"]) for each store. So a name one store owes is never reported in the other store, even where that other store's copy is stale.

Failure

Construct a cataloged entry that lists CODECOV_TOKEN in requiredSecrets and carries no tests in its tree. A registry requiredSecrets name is owed in the actions store only, and with no tests the codecov mechanism claims nothing, so nothing claims the Dependabot store. Put CODECOV_TOKEN in both live stores. spec/audit.py and configure.sh check then report the Dependabot copy as neither missing nor unclaimed, although no rule owes it there.

Origin

The union predates #3934. It is spec/audit.py check_secrets_names as it stands on main (claimed_names = required["actions"] | required["dependabot"]), which #3934 moved into compare_stores unchanged. Raised by Copilot on the #3937 promotion.

Fix

Compare each store's live names against that store's own required set. Check whether AUDIT.md describes the union, and update it with the change. Expect new DRIFT findings on repositories whose Dependabot store holds a name only the actions store owes.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    pre-existing
    script
    on Nov 8, 2026
  2. added a commit that references this issue on Nov 9, 2026
    5a8517f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpre-existingscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions