This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Description
The example is wrong.
|
# Optional. |
|
# repositories: >- |
|
# ["actions/toolkit", "github/docs"] |
repositories must be a list of repository names, not repository full names.
Please see the example of the official API document.
https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/app/installations/1/access_tokens \
-d '{"repository":"Hello-World","permissions":{"issues":"write","contents":"read"}}'
If we pass repository full names, this action can't issue tokens.
https://github.com/suzuki-shunsuke/test-github-action/actions/runs/6992873445/job/19024947554
Run tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
Error: Could not create installation access token.
[cause]: RequestError [HttpError]: There is at least one repository that does not exist or is not accessible to the parent installation.