Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Token can come from command line too. (#344)
Browse files Browse the repository at this point in the history
Adding a note about tokens coming from command line, which could enable
workflows like this:
```bash
$ GITHUB_USERNAME=igordertigor GITHUB_TOKEN=$(gh auth token) mlem ...
```
  • Loading branch information
igordertigor authored Apr 28, 2023
1 parent 384ae3d commit 3f5d326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/user-guide/dvc.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Github).

HTTPS authentication is done by setting `GITHUB_USERNAME` and `GITHUB_TOKEN`
environment variables. You need to generate a token
[here](https://github.com/settings/tokens).
[here](https://github.com/settings/tokens) or via command line `gh auth token`.

It's important to first authenticate with SSH, and only then with HTTPS.
Otherwise, running `gh auth login` will complain that `GITHUB_USERNAME` and
Expand Down

0 comments on commit 3f5d326

Please sign in to comment.