Skip to content

Commit

Permalink
docs: Update Github CLI access token location (#285)
Browse files Browse the repository at this point in the history
It looks like the gh cli has changed where it stores the token.

I'm not totally sure about this change - I'm sure it might not work properly with on-prem github installations, but then I'm not sure if the original config did either.
  • Loading branch information
joshhunt committed May 26, 2022
1 parent 208bf04 commit d0389eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ docker run \

You can also use Personal Access Token from [the GitHub CLI](https://github.com/cli/cli) to run the application:
```shell
export GITHUB_TOKEN=$(grep oauth_token ~/.config/gh/config.yml| cut -d ":" -f 2 | sed "s/ //g")
export GITHUB_TOKEN=$(grep oauth_token ~/.config/gh/hosts.yml| cut -d ":" -f 2 | sed "s/ //g")
docker build --tag=tp .
docker run \
--rm \
Expand Down

0 comments on commit d0389eb

Please sign in to comment.