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

How to set GITHUB_TOKEN? #23

Closed
Glusk opened this issue Oct 28, 2019 · 6 comments
Closed

How to set GITHUB_TOKEN? #23

Glusk opened this issue Oct 28, 2019 · 6 comments
Labels
question Further information is requested

Comments

@Glusk
Copy link

Glusk commented Oct 28, 2019

I'm confused as to how to pass the GITHUB_TOKEN to your action. Is it as simple as adding a new Personal access token to settings -> tokens -> Personal access tokens to my GitHub account? ^^

@tenhobi
Copy link
Contributor

tenhobi commented Oct 28, 2019

Hi @Glusk2 ✋, thanks for opening an issue!

The GITHUB_TOKEN is provided by GitHub itself. You don't have to do anything. 👍

For other tokens, for example, to some app, you would provide it using Personal access tokens.

@tenhobi tenhobi added the question Further information is requested label Oct 28, 2019
@Glusk Glusk closed this as completed Oct 28, 2019
@koppor
Copy link
Contributor

koppor commented Oct 29, 2019

@Glusk2 You can add a text to the README.md.

@Glusk
Copy link
Author

Glusk commented Oct 29, 2019

For other tokens, for example, to some app, you would provide it using Personal access tokens.

So I simply take an OAuth token (generated on GitHub via Personal access token util or provided by a third party service) and copy it to my secrets store, refering to it as ${{ secrets.<my_awesome_token>}} ?

@Glusk Glusk reopened this Oct 29, 2019
@tenhobi
Copy link
Contributor

tenhobi commented Oct 29, 2019

@Glusk2 for thirth party services that is correct – you have to add the key to Personal access tokens and you can use it like secrets.<my_token>.

GitHub automatically provides secrets.GITHUB_TOKEN for you.


For more information, read https://help.github.com/en/github/automating-your-workflow-with-github-actions/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables

@Glusk
Copy link
Author

Glusk commented Oct 29, 2019

For more information, read https://help.github.com/en/github/automating-your-workflow-with-github-actions/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables

@tenhobi @koppor
I think that link should be added to the README file but I'm not quite sure where to put it. :)

Perhaps as a side note under the Inputs table?

@ZPascal
Copy link
Collaborator

ZPascal commented Mar 16, 2024

I'm closing the issue because I think the use of tokens, permissions, and secrets is in general already documented here and in the GitHub upstream documentation. Feel free to reopen it if needed.

@ZPascal ZPascal closed this as completed Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants