-
Notifications
You must be signed in to change notification settings - Fork 428
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
[BUG] HttpError: Resource not accessible by integration - but it's working at a 2nd call #136
Comments
@joergi I believe that this Dependabot change may be the problem? I also have this issue with the I believe this can be fixed by altering the workflow to make use of the |
I've also been seeing this a lot recently, only with this action (always from Dependabot, too). It'd be nice if this would log something a bit more helpful in debugging what exactly it is that is not accessible. :) |
Dependabot runs PRs in a way that makes them appear as a fork, so as a result the pull_request action runs with a read-only token. That breaks label creation, which is super annoying. Switching to pull_request_target runs with a read-write token, but introduces a security risk if the action isn't careful. The action as-is is fine, but addtions need to be careful. Added a comment to that end. actions/labeler#136 https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target
Dependabot runs PRs in a way that makes them appear as a fork, so as a result the pull_request action runs with a read-only token. That breaks label creation, which is super annoying. Switching to pull_request_target runs with a read-write token, but introduces a security risk if the action isn't careful. The action as-is is fine, but addtions need to be careful. Added a comment to that end. actions/labeler#136 https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target
@dannysauer - was this fix helping you? is it now always green? |
* main: broker: Storage node cluster (#180) ci: workaround for actions/labeler#136 style: fix label.yml indentation
So, I'd argue that this action should recognize when it's in this state and explain itself. Basically an action can know which event it's running under (here:
(Whether it hardcodes |
Hello everyone! The Also, please read the GitHub documentation to be aware of the difference between these events, as well as the pros and cons of each:
I am closing the issue. Please contact us if you have any questions. |
I was using the labeler quite a while now, so I can have nice labels for my mono-repo.
But since a few weeks I get always(~99%) the same errors (see below), when Dependabot is creating PRs with dependency updates.
If I rerun the check, everything works as expected.
Anyone else having this issue?
My
.github/workflows/labeler.yml
looks like this:my
.github/labeler.yml
looks like this:The text was updated successfully, but these errors were encountered: