docHub

D-058 — Rotate to fine-grained PAT with Administration:delete before 2026-06-24

Status: accepted Originally triggered: 2026-06-19 Formally recorded: 2026-06-23 Decided by: Helper Mavis (session 412100071272671) + operator


Context

A long-lived classic GitHub PAT (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) was found embedded in .git/config of a sandbox clone. The token was visible on GitHub from at least 2026-06-19 to 2026-06-22. The token expires 2026-06-24.

The classic PAT has repo, workflow scopes. It CANNOT delete repositories (the dup cleanup that exposed the case-variant trap needed a fine-grained PAT with Administration: Delete repositories).


Decision

  1. Mint a fine-grained PAT with the following:
  1. Use the new PAT for all subsequent GitHub operations.
  2. Strip the old PAT from any local clones (git remote set-url origin https://github.com/<owner>/<repo>.git).
  3. Let the old PAT expire on 2026-06-24 rather than manually revoking — operator's call (per 2026-06-22 23:53 UTC chat).
  4. Rotate the Cloudflare API token at the same time (separate system, same leak risk).

Consequences


Pact cross-references

This is a docHub-level decision about external system hygiene. It does not have a direct pact fragment.


Related decisions


← back to Mavis workshop