-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Solution for "Error: Resource not accessible by integration" #194
Comments
Huh, thanks for the heads-up. I wonder why write permissions are required by the action. We don't write anything except for the status report at the end of the run. We don't write anything to the repo itself. Anybody has an idea what's going on? We might need to add further instructions to the readme if this is a common problem. I will reopen this issue as I'd like to get more feedback. |
I guess it's related to https://github.com/peter-evans/create-issue-from-file |
Do you still encounter this problem? I can't see any issues in any of the other pipelines so far. |
Nope, it was solved when I enabled |
Alright. Thanks for the update. Closing then. |
This makes lots of sense, and I agree that:
does not clearly say:
So: an alternative to default workflow permissions to read/write, and an alternative that I would prefer, personally, would be to add this top-level section to the GitHub workflow definition: permissions:
issues: write Or even better: scope it to the job in the workflow that needs that permission: jobs:
my-job:
permissions:
issues: write See a working example that can be imitated.
That's a good point, if you follow the example in the |
@AndreiCherniaev, are you interested in sending a pull request? |
This is not a bug report.
Just sharing a solution, that worked for me. In case anyone gets the
Error: Resource not accessible by integration
while running the workflow, try this:Settings
.General
fromActions
.Workflow permissions
, checkRead and write permissions
.Previously, repositories had this setting enabled by default. Seems like this has been changed.
The text was updated successfully, but these errors were encountered: