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

Error: Resource not accessible by integration #38

Open
JobaDiniz opened this issue Apr 28, 2023 · 3 comments
Open

Error: Resource not accessible by integration #38

JobaDiniz opened this issue Apr 28, 2023 · 3 comments

Comments

@JobaDiniz
Copy link

I get this error in pull-requests made by @dependabot

Run bcoe/conventional-release-labels@v1
  with:
    token: ***
    type_labels: {"feat": "feature", "fix": "fix", "breaking": "breaking"}
    ignored_types: ["chore"]
    ignore_label: ignore-for-release
Error: Resource not accessible by integration
@boyum
Copy link

boyum commented Jun 27, 2023

Which event triggers the workflow? pull_request or pull_request_target?

@JobaDiniz
Copy link
Author

pull_request

@boyum
Copy link

boyum commented Jun 27, 2023

pull_request_target is a little safer and GH will allow forks and bots to do more stuff.

If you need to use pull_request, you could add the correct permissions to the job. I think this should work:

permissions:
  contents: read
  pull_requests: write

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

2 participants