You removed a secret from branches, but the old commit still opens through a PR link.
AdvancedScenarioSecrets, Signing and Security
Answer
Situation read → GitHub retains refs/pull/* and cached commit views even after history is rewritten.
What I'd do →
- Confirm the secret is rotated; that is the real fix.
- Contact GitHub Support with the commit SHAs to remove cached views and PR refs, as the refs are read-only to you.
- Check forks and ask owners to delete them.
- Record the incident and stop reusing the old repo state.
Why → You cannot delete refs/pull/* yourself, so rotation is the dependable control.
Interview tip → If a secret was public for any time, treat it as burned regardless.
More on Secrets, Signing and Security
A developer pushed an AWS access key to a public repo 10 minutes ago. What is your first move?BeginnerAfter rotating the leaked key, you must purge it from repository history. How?AdvancedA push is rejected: "GH013: Repository rule violations found ... Push cannot contain secrets". What do you do?IntermediateSecret scanning alerts have piled up, and many look like false positives or old test credentials.IntermediateYou must set up signed commits on your laptop. Which method do you pick?BeginnerYour GPG signing key expires next week. What is the correct way to handle it?Intermediate