Re:GitHub: Packages support for fine-grained PATs
by simonw on Monday April 29, 2024 @12:01PM
(#40200043)
It would be a bit complicated to implement and explain to end-users, but maybe there's a path here where you're allowed to set unexpiring tokens but only if the scopes they have are tightened beyond a specific level?
A system that says "sure, you can have a token that doesn't expire if all you are doing is repository_dispatch" would be really useful to me too.
There is a miniscule attack vector from using PATs here (maximum someone could do is trigger many GH Actions builds, but they also could do that otherwise), and to rotate the PAT, two people have to coordinate (as the origin repo has tighter permissions), and even though docs exist in the repo for how to rotate them, as it's a rare task people didn't find them the first year (second year is still coming up). For that use-case I'd greatly appreciate if PATs would exist that have a longer/no expiry.