The checks.yml workflow is set to run on pull requests. It then runs the newrelic/repolinter-action@v1 action with the output_type configuration set to issue instead of exit-code. The repolinter-actionconfiguration requires a token value to be set with a valid Github Personal access token.
Steps to reproduce the behavior
Run the steps on an existing repo and and the checks won't pass. In my case the error message was:
Error: A fatal error was thrown.
Error: Octokit API call failed. This may be due to your token permissions or an issue with the GitHub API. If the error persists, feel free to open an issue.
Error: GET https://api.github.com/repos/XXXXX/XXXX/issues?creator=app%2Fgithub-actions&labels=cms-oss-tier4&state=all&sort=created&direction=desc returned status 403
I filed an issue instead of a PR as I was unsure of the preferred solution. Possible solutions include:
the output_type could be set to exit-code
add more steps to the setup procedure to create a token, add it to the secrets with the appropriate name
Issue Report
module-name: checks.yml repo linter requires token
Expected behavior
To be able to run the
repo-scaffolder
setup procedure for existing repos and have the checks work.Actual behavior
The checks.yml workflow is set to run on pull requests. It then runs the
newrelic/repolinter-action@v1
action with theoutput_type
configuration set toissue
instead ofexit-code
. Therepolinter-action
configuration requires atoken
value to be set with a valid Github Personal access token.Steps to reproduce the behavior
Run the steps on an existing repo and and the checks won't pass. In my case the error message was:
I filed an issue instead of a PR as I was unsure of the preferred solution. Possible solutions include:
output_type
could be set toexit-code