-
Notifications
You must be signed in to change notification settings - Fork 348
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
Auto-Detect PR error on Workflow dispatch, resource not accessible #1208
Comments
I found that adding the following permission solves this error. pull-requests: read # Needed for workflow_dispatch execution |
Thank you for reporting your issue! I understand that you have resolved your error condition. The documentation does not cover permissions settings, so there is some scope for adding information to help users avoid the issue which you ran into. Could you please post your failing workflow? That would help us to reproduce your issue. We could also check if the error condition needs to be fatal or whether it could be a warning only. |
Hi @MikeMcC399 , @Cellule , I've ran into the same problem. For us the issue occured right after we've done a forced upgrade to Enterprise account in Github. Before that cypress-io actions were running for us for years. And the issue happened right after I've upgraded our organization to Enterprise level structure which Github will be enforcing for all users which use Enterprise plans. I suspect that for the Enterprise there might be some different default rules for GITHUB_TOKEN. In our case I've added the following line on the top level in the workflow where we use cypress-io, and that fixed it:
|
Closing as there was no further response and I was unable to reproduce the issue. |
Related to this issue I have submitted two enhancement requests: |
Since there's no PR information on a workflow_dispatch the action will try to fetch it
github-action/index.js
Lines 474 to 497 in f6f2cc1
However, even though the call is in a try/catch it still errors my whole run.
Right now I suspect it fails because we are using the following permissions on the job
I'm not sure yet which permission I need to give yet, but I would have expected that it wouldn't fail the run at least
The text was updated successfully, but these errors were encountered: