Skip to content
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

Run bk configure in browserless environment #42

Closed
AnthonyWC opened this issue Feb 28, 2019 · 6 comments
Closed

Run bk configure in browserless environment #42

AnthonyWC opened this issue Feb 28, 2019 · 6 comments

Comments

@AnthonyWC
Copy link

Currently one of the step for bk configure requires configuration of github cred within a browser:

──── Let's configure your github.com credentials 💻

We need to authorize this app to access your repositories. This authorization is stored securely locally, buildkite.com never gets access to it.

When you press enter, your default browser will open and authenticate to github.com

How to do this step in the command line in a browserless/headless environment?

@lox
Copy link

lox commented May 19, 2019

Good question! We hadn't considered that use-case yet, can you tell us a bit more about what you are using bk for in a browserless/headless environment?

@AnthonyWC
Copy link
Author

Mainly for testing; imagine in environment where developers won't have direct ssh access to the buildkite agent but wanted to run bk in an test agent that they set up themselves. With bksr this was easy enough to do w/ token authentication.

@toolmantim
Copy link

Are you wanting to use bk’s GitHub functionality in that case @AnthonyWC?

@AnthonyWC
Copy link
Author

Actually the bksr functionality works fine; but I wanted to setup new pipeline directly from cli. I think I need to authenticate first before I can do that and ran into issues in this headless environment. I suppose I can try this in my laptop and see if that works as well.

@lukedirtwalker
Copy link

Good question! We hadn't considered that use-case yet, can you tell us a bit more about what you are using bk for in a browserless/headless environment?

In a COVID world I have a simple answer to this. I have my workstation in the office and work on it remotely from my home computer. It would be great if such a setup would be supported.

@mcncl
Copy link
Contributor

mcncl commented Sep 25, 2024

GH credentials are no longer required, so closing this for now.

@mcncl mcncl closed this as completed Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants