-
Notifications
You must be signed in to change notification settings - Fork 7
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
Authentication options (for Github Enterprise and other platforms support) #28
Comments
Why not make the user switch the token as needed, as opposed to supporting two? |
That means you need to do separate runs against different targets, with separate configs? Sure, it's an option, but it's pretty poor UX? |
It kind of seems like everything should "just work" the same as if you did |
You mean rely on |
Yes. Jenkins would need whatever tokens or SSH config |
Sure, folks who can set up Jenkins, definitely set up the Maybe we could stick to |
ahhh, ok thanks for clearing that up - i didn't think about opening PRs. However, it seems like rather than a user's token, we'd want a github app to do it? |
Honestly, I have no clue how apps are meant to work on standalone Enterprise instances... The one I've seen, most certainly does not have any apps that I could see as a user. That said, I think there's lots of value in making everything accessible via CLI - apps imply asking for permissions in organizations, installation, lifecycles, etc. A nice tool should also just work locally, on a developer machine. |
Also opened this discussion: nodejs/tooling#87 |
While we don't need to focus on this right now, I'm opening up this discussion early, so that people can share their thoughts and things they've seen in the wild.
To implement #6, there will be a need to have at least two tokens - one for public GH, one for GH Enterprise, which means that just the
GITHUB_TOKEN
environment variable will not be enough.Does anyone have any preferred solutions for that?
I personally have either used or have seen the following in the wild:
GITHUB_COM_TOKEN
and have a secondary env var token. Renovate takes this approach (they use aRENOVATE_TOKEN
andGITHUB_COM_TOKEN
).hub
, which has credentials stored in~/.config/hub
.octokit-auth-netrc
wiby
will be running, it might be very inconvenient operationally to provide a single file with all the credentials. I kind of wish.netrc
could point to an env var as well as provide the secret value itself...The text was updated successfully, but these errors were encountered: