-
Notifications
You must be signed in to change notification settings - Fork 99
ngh doesn't seem to recognize GH_TOKEN #20
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
Comments
I'm not too bright - the error was right there in the job log. Git user details needed to be properly configured. My bad! |
Oh, it still fails even with git configured |
The message in the log is pretty clear:
The configured username and password will make your git history pretty. They do not have any influence to the authentication to github. Please see this: It will be a bit complicated to change the global git configuration to use another account. I never tried that for travis. The easiest solution is the following:
|
Ohhh, I believe I misunderstood this and though ngh would automatically recognize the GH_TOKEN env var (that IS present). But I actually have to include "GH_TOKEN" within the --repo option. I didn't do that and was just executing ngh. Let me try again. |
Yes, it recognizes the GH_TOKEN env var and replaces the same string in the URL. No magic here! ;-) |
Yeah it works perfect now, thanks! |
My personal job log from a failed deployment.
My personal .travis.yml from this specific project
I'm pretty sure I've setup the environment variable on Travis correctly, including the token permissions. Am I missing something silly, or is there a potential bug?
The text was updated successfully, but these errors were encountered: