Skip to content

Allow to customize who can do a release #19

@jonenst

Description

@jonenst

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions