newrelic/Repolinter Action

Runs Repolinter against a repository, then uses the results to open an issue.

View on GitHub

Trust Signals

Scorecard Score
Scorecard 4–6scored Jul 6, 2026
Maintenance Recency
Stalelast commit Jan 12, 2024
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: newrelic/repolinter-action@3f4448f855c351e9695b24524a4111c7847b84cb # v1.7.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
directoryThe directory Repolinter should run against. Accepts an absolute path or a path relative to $GITHUB_WORKSPACE. Defaults to $GITHUB_WORKSPACE. no${{ github.workspace }}
tokenPersonal access token (PAT) used to create an issue on this repository. This token is optional and only required if this actions is configured to output an issue (see output_type). This token must have the `public_repo` scope for the current repository in order to work properly. If you set this field to a custom token, you will also need to change `username` to the username associated with the token provided. [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) no${{ github.token }}
usernameThe username associated with the `token` field. Repolinter-action uses this value to determine which issues have been created by itself. Prefix this value with `app/` if `token` is generated from a GitHub app instead of a normal user (see https://docs.github.com/en/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-by-author). Defaults to the username associated with the `GITHUB_TOKEN` provided by Github Actions. noapp/github-actions
config_fileA path to the JSON or YAML Repolinter ruleset to use, relative to the working directory (i.e. under `$GITHUB_WORKSPACE`). This option is mutually exclusive with config_url. If this option and config-url are not specified, Repolinter's default ruleset will be used. no
config_urlA URL to pull the JSON or YAML Repolinter ruleset from. This URL must be accessible by the actions runner and return raw JSON file on GET. This option can be used to pull a ruleset from GitHub using the raw.githubusercontent.com URL (ex. https://raw.githubusercontent.com/aperture-science-incorporated/.github/master/repolinter-newrelic-communityplus.json). This option is mutually exclusive with config_url. If this option and config-url are not specified, Repolinter's default ruleset will be used. no
repositoryThe repository name and owner, formatted like so: `owner/repository`. This input determines which repository repolinter-action will create an issue on, if that functionality is enabled. It is recommended that this option is left as the default value. no${{ github.repository }}
output_typeWhere repolinter-action should put the linting results. There are two options available: * "exit-code": repolinter-action will print the lint output to the console and set the exit code to result.passed. This output type is most useful for PR status checks. * "issue": repolinter-action will create a GitHub issue on the current repository with the repolinter output and always exit 0. See the README for more details on issue outputting behavior. This output type is ideal for non-intrusive notification. noexit-code
output_nameThe title to use for the issue created by repolinter-action. This title should indicate the purpose of the issue, as well as that it was created by a bot. This option will be ignored if output_type != "issue". no[Repolinter] Open Source Policy Issues
label_nameThe name to use for the issue label created by repolinter-action. This name should be unique to repolinter-action (i.e. not used by any other issue) to prevent repolinter-action from getting confused. This option will be ignored if output_type != "issue". norepolinter
label_colorThe color to use for the issue label created by repolinter-action. The value for this option should be an unprefixed RRGGBB hex string (ex. ff568a). The default value is a shade of yellow. This option will be ignored if output_type != "issue". nofbca04
namedescription
passedA boolean indicating whether or not the Repolinter run passed or failed.
erroredA boolean indicating whether or not the action threw any errors.
json_outputThe JSON output from the repolinter run, from repolinter.jsonFormatter.