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

Versions >= 3.0.2 fail with "Resource not accessible by integration" on merge_group event #127

Open
croesnick opened this issue Oct 11, 2023 · 1 comment
Assignees

Comments

@croesnick
Copy link

croesnick commented Oct 11, 2023

Situation

The following workflow fails when triggered as part of a merge queue check:

name: Sample

on:
  merge_group:
    types:
      - checks_requested

permissions:
  actions: read
  contents: read

jobs:
  sample:
    runs-on: ubuntu-latest

    steps:
      - uses: nrwl/nx-set-shas

Observation

As reported in #114 (comment), it works with version 3.0.2. Tested it with 3.3.2 and 4.0.1.

Expectation

Works with all recent versions on merge_group events as well. :)

@vietd24-philips
Copy link

vietd24-philips commented Nov 10, 2023

@croesnick Heyo, I found out through manual testing through pretty much the whole list of scopes, that the following entry was missing for this action to be able to work in a merge group status check. (tested only with 3.3.2, since we havent migrated to node18 yet)

      pull-requests: read

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

3 participants