newrelic/Repolinter Action
Runs Repolinter against a repository, then uses the results to open an issue.
View on GitHubTrust Signals
- Scorecard Score
- Scorecard 4–6scored Jul 6, 2026
- Maintenance Recency
- Stalelast commit Jan 12, 2024
- License
- Apache 2.0
Pinned Snippet
uses: newrelic/repolinter-action@3f4448f855c351e9695b24524a4111c7847b84cb # v1.7.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| directory | The directory Repolinter should run against. Accepts an absolute path or a path relative to $GITHUB_WORKSPACE. Defaults to $GITHUB_WORKSPACE. | no | ${{ github.workspace }} |
| token | Personal 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 }} |
| username | The 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. | no | app/github-actions |
| config_file | A 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_url | A 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 | — |
| repository | The 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_type | Where 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. | no | exit-code |
| output_name | The 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_name | The 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". | no | repolinter |
| label_color | The 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". | no | fbca04 |
Outputs
| name | description |
|---|---|
| passed | A boolean indicating whether or not the Repolinter run passed or failed. |
| errored | A boolean indicating whether or not the action threw any errors. |
| json_output | The JSON output from the repolinter run, from repolinter.jsonFormatter. |