Open
Description
The example is wrong.
Lines 42 to 44 in 3eb77c7
repositories
must be a list of repository names, not repository full names.
Please see the example of the official API document.
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.
Metadata
Metadata
Assignees
Labels
No labels