-
Notifications
You must be signed in to change notification settings - Fork 25
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
Upgrade to v3 : Resource not accessible by integration
#49
Comments
Same issue here... |
Could you both please link to the workflow that you're using? |
Hi !
|
I can't seem to reproduce the issue. Workflow: https://github.com/mheap/label-test-repo/blob/main/.github/workflows/label.yml Output without |
Then I guess it could happen in case of private repos? I can't see any other difference at this point... |
Found the issue. The Here's a workflow that worked for me with a private repo: name: Checks
on:
push:
branches:
- main
- develop
pull_request:
types:
- opened
- labeled
- unlabeled
jobs:
label:
name: Ensure PR not in hold
runs-on: ubuntu-latest
permissions:
issues: read
pull-requests: read
steps:
- name: Check
uses: mheap/github-action-required-labels@v3
with:
mode: exactly
count: 0
labels: "pr-hold" |
I was just facing a similar issue in our repo. FWIW, the docs on GHA
This means that the suggested workaround permissions:
issues: read
pull-requests: read won't work with @mheap Would it make sense to document in the |
@ockham The README documents the following in the examples:
What would you expect to see in addition? |
Hi @mheap,
When i'm upgrading action to v3 from v2, I have the error
Resource not accessible by integration
. Everything works fine with v1 & v2.Did I miss something ?
Thanks !!
The text was updated successfully, but these errors were encountered: