-
Notifications
You must be signed in to change notification settings - Fork 34
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
Set a token default and support private repos #33
Conversation
`No GitHub token found` | ||
) | ||
} | ||
const token = process.env['GITHUB_TOKEN'] || core.getInput("token") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For backwards compatibility the environment variable is used if available. If not it falls back to the token
input.
@@ -2,6 +2,9 @@ name: "Install a binary from GitHub releases" | |||
description: "Install binaries from GitHub releases" | |||
author: "Lee Briggs" | |||
inputs: | |||
token: | |||
description: 'GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT)' | |||
default: ${{ github.token }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defaults to GITHUB_TOKEN
so users don't need to specify a token in workflows unless they want to access a private repository.
thanks for the awesome contribution! |
Thank you for maintaining this great action! |
The aim of this PR is to improve the interface and allow the action to work for private repositories.
token
input that defaults to the defaultGITHUB_TOKEN
in the repository.