-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add support for github tokens for private repos. #83
Conversation
For anyone who wants to use this already, this branch provides a packaged dist: https://github.com/Marenz/check-for-changed-files/tree/token-support-packaged So you can use this with |
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.
Very minor doc tweaks.
action.yml
Outdated
@@ -19,6 +19,10 @@ inputs: | |||
description: "String template used when the check fails" | |||
required: false | |||
default: "the prerequisite file pattern ${prereq-pattern} matched changed files in the pull request, but the ${file-pattern} pattern did NOT and the ${skip-label} label is not set" | |||
token: | |||
description: "Github token to use to checkout the pull request files." |
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.
description: "Github token to use to checkout the pull request files." | |
description: "GitHub token to use to checkout the pull request files." |
README.md
Outdated
@@ -41,6 +41,11 @@ The message to emit when the check fails. All other inputs can be specified in | |||
the message using `${}` syntax, e.g. `${file-pattern}` for the `file-pattern` | |||
input. All values will be quoted for easy identification of any whitespace. | |||
|
|||
### `token` | |||
|
|||
Github token to use for private repositories. Falls back to anonymous access if |
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.
Github token to use for private repositories. Falls back to anonymous access if | |
A GitHub auth token to use for private repositories. Falls back to anonymous access if |
Is there a good URL to point users to for what sort of token to request?
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.
In most cases probably using ${{ secrets.GITHUB_TOKEN }}
should be enough.
This change is failing CI due to not having the |
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
I addressed all comments and mentioned the github secrets that usually is used in that place |
Thanks! I will work on getting a new release out. |
No description provided.