logoalt Hacker News

securesamlyesterday at 10:26 PM1 replyview on HN

I wouldn’t recommend this. What if GitHub’s token scanning service went down. Ideally GitHub should expose an universal token revocation endpoint. Alternatively do this in a private repo and enable token revocation (if it exists)


Replies

jychangyesterday at 11:01 PM

You're revoking the attacker's key (that they're using to upload the docs to their own account), this is probably the best option available.

Obviously you have better methods to revoke your own keys.

show 1 reply