Skip to content

Commit

Permalink
Update readme to show how to use the secret GITHUB_TOKEN (#131)
Browse files Browse the repository at this point in the history
* Update readme to show how to use the secret GITHUB_TOKEN

* Adds in link to docs - which I feel seem to be scattered in repos & official docs
  • Loading branch information
worldlight425 committed Sep 12, 2019
1 parent 4d54de5 commit 6442125
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const github = require('@actions/github');
const core = require('@actions/core');

// This should be a token with access to your repository scoped in as a secret.
// The YML workflow will need to set myToken with the GitHub Secret Token
// myToken: ${{ secrets.GITHUB_TOKEN }
// https://help.github.com/en/articles/virtual-environments-for-github-actions#github_token-secret
const myToken = core.getInput('myToken');

const octokit = new github.GitHub(myToken);
Expand Down

0 comments on commit 6442125

Please sign in to comment.