create-github-app-token icon indicating copy to clipboard operation
create-github-app-token copied to clipboard

Permission to manage GitHub Repository Variables

Open suzuki-shunsuke opened this issue 7 months ago • 4 comments
trafficstars

I'd like to get the permission to manage GitHub Repository Variables.

https://docs.github.com/ja/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-variables https://cli.github.com/manual/gh_variable

But seems like the permission isn't supported.

https://github.com/actions/create-github-app-token/blob/main/scripts/generated/app-permissions.json

suzuki-shunsuke avatar Apr 04 '25 23:04 suzuki-shunsuke

The permissions are based on the app-permissions schema from GitHub's OpenAPI schema. We get it from the @octokit/openapi package which receives pull request whenever a change is found, like this one: https://github.com/octokit/openapi/pull/487. It's possible that this pull request already has the new permission and will resolve it, if not someone has to open an issue in github/rest-api-description/ which is the repository where GitHub publishes their public OpenAPI specs to.

We wanted to use @octokit/app-permissions but that repository needs fixing and it became to much of a rabbit hole, but hope we get around tore solve that

gr2m avatar Apr 06 '25 00:04 gr2m

looks like this issue still exists and cannot gain permission-variables or permission-organization-variables permissions using this action.

sekhar-isovalent avatar Aug 13 '25 12:08 sekhar-isovalent

@gr2m - anyway we can get this issue fixed before the next release ?

sekhar-isovalent avatar Sep 19 '25 12:09 sekhar-isovalent

@gr2m - Gentle reminder ! 🙏

sekhar-isovalent avatar Oct 08 '25 08:10 sekhar-isovalent