Using a Fine-Grained PAT for Self-Hosted Runner Registration #120232
-
Select Topic AreaQuestion BodyHey there! I'm currently trying to figure out which permissions are required on a fine-grained PAT to create a registration token for a self-hosted GitHub Actions runner. The documentation mentions that The error message of the failing call reads: {
"message": "Resource not accessible by personal access token",
"documentation_url": "https://docs.github.com/rest/actions/self-hosted-runners#create-a-registration-token-for-an-organization"
} Are there any other permissions required for a fine-grained PAT to create runner registration tokens? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
YOu don't use a regular or a finegrained PAT to register runners. Runners have their own type of token for registration. |
Beta Was this translation helpful? Give feedback.
I was just able to get this to work by generating a fine-grained PAT token from an account that was a github org-level admin.
I was originally trying to do this from a non-admin 'bot' account, was able to generate the token / request approval / and then approve the token from my admin account, however this token encountered the error above. I assume there is some kind of issue with the approval process for fine-grained PATs.
Ideally I would be able to manage the token from this 'bot' account, but at least there is a workaround for now, and I feel more comfortable using this fine-grained token from my own account with just this single permission, vs a classic admin token.
For reference, th…