Skip to content

Update commit queue token permission #640

@aduh95

Description

@aduh95

I've been trying to update the CQ to make it able to "purple-merge" PRs with the CQ. Before that, the CQ was using two tokens:

GITHUB_TOKEN is not allowed to merge PRs because it's not part of @nodejs/collaborators, so @targos tried to use @nodejs-github-bot's token to run the CQ. Unfortunately this didn't work:

GraphQL error: Your token has not been granted the required scopes to execute this query. The 'login' field requires one of the following scopes: ['read:org'], but your token has only been granted the: ['read:user', 'repo', 'user:email', 'workflow'] scopes. Please modify your token's scopes at: https://github.com/settings/tokens.

https://github.com/nodejs/node/runs/4131235476?check_suite_focus=true

Originally posted by @aduh95 in nodejs/node#40742 (comment)

I'm asking for permission to update the permissions to make the Commit Queue work correctly:

  • read:org
  • notifications

For info, the current permissions for this token are ['read:user', 'repo', 'user:email', 'workflow'].

Metadata

Metadata

Assignees

No one assigned

    Labels

    fast-trackFast tracked requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions