cli icon indicating copy to clipboard operation
cli copied to clipboard

Run bk configure in browserless environment

Open AnthonyWC opened this issue 5 years ago • 5 comments

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?

AnthonyWC avatar Feb 28 '19 16:02 AnthonyWC

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?

lox avatar May 19 '19 05:05 lox

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.

AnthonyWC avatar May 21 '19 18:05 AnthonyWC

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

toolmantim avatar May 25 '19 04:05 toolmantim

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.

AnthonyWC avatar May 28 '19 19:05 AnthonyWC

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.

lukedirtwalker avatar Jul 28 '21 06:07 lukedirtwalker

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

mcncl avatar Sep 25 '24 06:09 mcncl