-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Using hub from GitHub Actions #2149
Comments
The workaround I found is to write |
Thank you @rtimush; this is useful information. I was not aware of the "Resource not accessible by integration" API limitation. I shall file this as a bug and will think about how to avoid automatically querying |
@rtimush For clarity, can you tell us more what kind of action uses |
The action I'm trying to create is a script that reacts on |
I'd like to add that we're running into the same issue.
It also would be helpful if |
You may now work around this by upgrading hub to v2.12.3 and setting the GITHUB_USER environment variable. This value is seldom used for any command, so you can even set it to a dummy value (the recommended value is the owner of the current repo, even if it's an org). Let me know how using hub from Actions goes! 🙌 |
Everything looks good now, thanks! |
## Issue Addressed Our v1.1.0 automated release failed to upload to Github. The `hub` command failed with a `403`, which seems like this issue: mislav/hub#2149 ## Proposed Changes The suggested fix in that issue is to set the `$GITHUB_USER` environment variable. I can't really test this because this hasn't been failing on my fork, but seems low risk Co-authored-by: realbigsean <seananderson33@gmail.com> Co-authored-by: Paul Hauner <paul@paulhauner.com>
## Issue Addressed Our v1.1.0 automated release failed to upload to Github. The `hub` command failed with a `403`, which seems like this issue: mislav/hub#2149 ## Proposed Changes The suggested fix in that issue is to set the `$GITHUB_USER` environment variable. I can't really test this because this hasn't been failing on my fork, but seems low risk Co-authored-by: realbigsean <seananderson33@gmail.com> Co-authored-by: Paul Hauner <paul@paulhauner.com>
When
hub api
is called from a GitHub Action with aGITHUB_TOKEN
available without any additional configuration it fails with "Bad credentials".Command:
Output:
The text was updated successfully, but these errors were encountered: