Skip to content
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

Allow to customize who can do a release #19

Open
jonenst opened this issue Mar 4, 2025 · 0 comments
Open

Allow to customize who can do a release #19

jonenst opened this issue Mar 4, 2025 · 0 comments

Comments

@jonenst
Copy link
Collaborator

jonenst commented Mar 4, 2025

Describe the current behavior

The workflow doesn't enforce anything about the user doing the workflow dispatch

Describe the expected behavior

we could enforce some things using
$ curl -s -H "Authorization: Bearer XXX" https://api.github.com/repos/OWNER/REPO/collaborators/USER/permission | jq ". | {permission: .permission, role_name: .role_name}"
{
"permission": "admin",
"role_name": "admin"
}

or
{
"permission": "write",
"role_name": "write"
}

Can be one of: pull, triage, push, maintain, admin
https://docs.github.com/en/rest/collaborators/collaborators#get-repository-permissions-for-a-user

Describe the motivation

more control over who releases, not anyone with push access to the repository

Extra Information

No response

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

1 participant