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

Remove the need to explicitly pass GITHUB_TOKEN #94

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Remove the need to explicitly pass GITHUB_TOKEN #94

merged 1 commit into from
Mar 30, 2023

Conversation

ezzatron
Copy link
Contributor

This PR removes the need to explicitly pass a GitHub token as an action input. This helps a little to reduce the amount of configuration needed. You can still pass a different token explicitly if you want to.

GitHub's documentation on Actions doesn't really explain how to do this very clearly, but basically you have to set a default value for the token in action.yml that uses ${{ github.token }}.

For example here are some examples of GitHub's own actions that use this approach:

@jdkato
Copy link
Member

jdkato commented Mar 30, 2023

Thanks!

@jdkato jdkato merged commit d074f98 into errata-ai:reviewdog Mar 30, 2023
@ezzatron ezzatron deleted the automatic-token-auth branch March 30, 2023 22:28
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.

2 participants