Skip to content

Permission to manage GitHub Repository Variables #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
suzuki-shunsuke opened this issue Apr 4, 2025 · 1 comment
Open

Permission to manage GitHub Repository Variables #231

suzuki-shunsuke opened this issue Apr 4, 2025 · 1 comment

Comments

@suzuki-shunsuke
Copy link

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

@gr2m
Copy link
Contributor

gr2m commented Apr 6, 2025

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:
octokit/openapi#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants