Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme to show how to use the secret GITHUB_TOKEN #131

Merged
merged 2 commits into from
Sep 12, 2019

Conversation

warrenbuckley
Copy link
Contributor

This updates the example with some inline comments to show that you need to use the GITHUB_TOKEN secret as the token which will need to be passed in for you to use & authenticate the GitHub API

@damccorm
Copy link
Contributor

This seems helpful, thanks for the contribution.

@damccorm damccorm merged commit b297969 into actions:master Sep 12, 2019
@warrenbuckley warrenbuckley deleted the patch-1 branch September 12, 2019 18:52
@rowi1de
Copy link

rowi1de commented Nov 25, 2019

Is this up-to-date? I'm getting Bad Credentials when doing

import * as core from '@actions/core';
import { context, GitHub } from '@actions/github'

const repoToken = core.getInput('repo-token', { required: true })
const client = new GitHub(repoToken)
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants