Replies: 1 comment 1 reply
-
unfortunately that's not possible, installation access tokens are scoped to a single owner. There is no way around it. If you have a script that needs to work with GitHub App credentials across multiple owners, you'll either have to wrap up the work into multiple steps using multiple tokens, or create your own script that creates the tokens itself as part of it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We're trying to use the create-github-app-token action in our enterprise GitHub cloud to create new repositories using our own GitHub Template repositories within a workflow running the gh CLI. The GitHub App being used has permissions to multiple "owner" spaces which we have setup (for example "internal/" and "product/", aka organizations), however the tokens currently created by the action only grant permissions to a single provided owner space.
This causes problems because we use an "internal" owner space to put the template repositories but would like to be able to create the repo using a template in a separate "product" owner space, however when creating a repository from a template you must have access to both spaces. It does work if we create the new repo in the same "internal" space as the template repository.
For example:
If I switch owner to "internal", then it won't have perms to the "product" space to create the new repository in. If we remove the "owner" param it only creates a token that can be used just for that repository, which means no permissions to create or load template repository.
Could a new option be provided to input as a list of owner spaces instead of just one?
Beta Was this translation helpful? Give feedback.
All reactions