Open travi opened 3 years ago
Let's talk about authentication in general. I was thinking to introduce a prompt to ask about authentication if the --octoherd-token
CLI argument is not passed.
In that prompt, we can utilize octokit-auth-netrc
to check if it finds a token and suggests that as an option.
The other options I'd like to start with:
@octokit/auth-oauth-device
Future ideas:
App ID
and Private Key
or by using the GitHub App Manifest Flow to create a GitHub App. If we support GitHub App authentication we need to update the way we iterate through repositoriesnpm
or gh
. We could introduce octoherd login
and run scripts using octoherd run
. I haven't done this before though, so I wonder what the conventions and security considerations are here. I'd also like to keep Deno compatibility in mind, see #5 With the recent introduction of support for GHES domains, octokit-auth-netrc
will need to be updated to also support custom domains. I have opened a PR to support GHES domain in the netrc plugin: https://github.com/travi/octokit-auth-netrc/pull/608
i'll try to get a PR together sometime soon to make this possible with octokit-auth-netrc