-
Notifications
You must be signed in to change notification settings - Fork 80
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
Default GitHub token is not valid for github.com when using GitHub Enterprise #196
Comments
We could check whether |
Sure
…On Thu, Nov 2, 2023 at 5:43 AM Sander ***@***.***> wrote:
We could check whether $GITHUB_SERVER_URL or {{ github.server_url }} is
set to https://github.com. If it's not, then we don't use the default
token. @gdw2 <https://github.com/gdw2> , would you be able to test this
out for us if we roll out a fix?
—
Reply to this email directly, view it on GitHub
<#196 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFCLQD6R4MBVQF7RYRFRA3YCOBOLAVCNFSM6AAAAAA54IPNLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJQGU3TAMZUGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The token on Enterprise instances is not valid for github.com. Resolves #196.
The token on Enterprise instances is not valid for github.com. Resolves #196.
@gdw2 ping :) |
I think it worked. I'm getting the following message in a latter stage (using the nix-shell-action action), which means I may have to use a token after all, but that's my problem:
I'd go ahead and merge this. Thanks. |
Expected
If I don't explicitly specify a github token, I would expect it to try to access github 'anonymously' (subject to rate limiting).
Actual
(From the
nix-shell-action
action which leverages the work done by install-nix-action. )Analysis
I'd like to be able to use
install-nix-action
without a github token, but I don't think it's possible to withhold the$GITHUB_TOKEN
from the script. I tried passingGITHUB_TOKEN
as an empty string, but I think github overrides it with my actual token.Since I'm using Github Enterprise, my token isn't valid for github.com, so I get the "Bad credentials" error above.
My solution was to fork this repo, and comment out these lines and then it works fine for me.
The text was updated successfully, but these errors were encountered: