Skip to content

Commit

Permalink
Merge pull request #91 from johnsyweb/paj/grab-credentials-from-keychain
Browse files Browse the repository at this point in the history
Document how to grab credentials from the keychain
  • Loading branch information
orien authored Aug 6, 2022
2 parents be7c010 + 66e92b7 commit 990774d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ $ gem install unwrappr

## Configuration

`unwrappr` needs a [GitHub Personal Access Token](https://github.com/settings/tokens), stored in the environment as `GITHUB_TOKEN`.
`unwrappr` needs a [GitHub Personal Access
Token](https://github.com/settings/tokens), stored in the environment as
`GITHUB_TOKEN`. If you have your Personal Access Token stored in the macOS
keychain, you can pull this into your shell environment using the `security`
tool. _E.g:_

```bash
export GITHUB_TOKEN=$(security find-internet-password -gs github.com 2>&1 | awk -F' ' '$1 == "password:" { print $2 }' | tr -d '"')
```

To run `unwrappr` in the current working directory use...

Expand Down

0 comments on commit 990774d

Please sign in to comment.