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

Add support for github tokens for private repos. #83

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

Marenz
Copy link
Contributor

@Marenz Marenz commented Jul 31, 2023

No description provided.

@Marenz
Copy link
Contributor Author

Marenz commented Jul 31, 2023

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 marenz/check-for-changed-files@token-support-packaged

Copy link
Owner

@brettcannon brettcannon left a 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."
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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?

Copy link

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.

@brettcannon brettcannon added the skip package*.json No need to update package.json label Jul 31, 2023
@brettcannon
Copy link
Owner

This change is failing CI due to not having the index.js file updated.

@Marenz
Copy link
Contributor Author

Marenz commented Aug 1, 2023

I addressed all comments and mentioned the github secrets that usually is used in that place

@brettcannon brettcannon self-requested a review August 1, 2023 17:33
@brettcannon brettcannon merged commit 4170644 into brettcannon:main Aug 4, 2023
2 checks passed
@brettcannon
Copy link
Owner

Thanks! I will work on getting a new release out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip package*.json No need to update package.json
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants