I've set up the access token strategy for a GitHub organization so that access token require admin approval. As the picture below says: "All access requests by organization members to this organization must be approved before the token is usable."
However I do not find anywhere where such a request can be made.
We have a bot account that's supposed to post issues on one of the organization's private repositories. When creating a personal access token (fine grained) for the bot account, no such request is being made (and no access is given) and there is no option to pick a repository from the organization or something along those lines.
So how do you send a request for access token permission to an organization?
The process for Personal Access Tokens (PAT) permission to a GitHub organization is like this:
Enabled PATs on the Organization's (not your personal!) Settings, at
.../settings/personal-access-tokens-onboarding
(or modify them on../settings/personal-access-tokens
)Go to Account settings > Developer settings > Fine-grained tokens. For an Org, you must use YOUR (or the Bots', not the Orgs!) Setttings, and change the Resource owner from you to the Org on this screen.
The Orgs's
.../settings/personal-access-token-requests
should now show the request to approve.If you create a PAT for an Org Owner, it's directly granted, and shows up on the Org's
.../settings/personal-access-tokens/active