Skip to content

Commit 716e9ad

Browse files
authored
Merge pull request #123 from DSACMS/add-repolinter-action
Add First Version of Repolinter Action
2 parents 4cd896c + b59614e commit 716e9ad

File tree

2 files changed

+877
-365
lines changed

2 files changed

+877
-365
lines changed

.github/workflows/checks.yml

+64
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,71 @@ on:
33
pull_request:
44
branches: [main, dev]
55

6+
67
jobs:
8+
repolinter-checks:
9+
name: Tier 3 Checks
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: newrelic/repolinter-action@v1
14+
with:
15+
# A path to the JSON/YAML Repolinter ruleset to use, relative to the workflow
16+
# working directory (i.e. under `$GITHUB_WORKSPACE`).
17+
#
18+
# This option is mutually exclusive with config_url. If this option and
19+
# config_url are not specified, Repolinter's default ruleset will be used.
20+
config_file: 'repolinter.json'
21+
22+
# Where repolinter-action should put the linting results. There are two
23+
# options available:
24+
# * "exit-code": repolinter-action will print the lint output to the console
25+
# and set the exit code to result.passed. This output type is most useful for
26+
# PR status checks.
27+
# * "issue": repolinter-action will create a GitHub issue on the current
28+
# repository with the repolinter output and always exit 0. See the README for
29+
# more details on issue outputting behavior. This output type is ideal for
30+
# non-intrusive notification.
31+
#
32+
# Default: "exit-code"
33+
output_type: 'issue'
34+
35+
# The title to use for the issue created by repolinter-action. This title
36+
# should indicate the purpose of the issue, as well as that it was created by
37+
# a bot.
38+
#
39+
# This option will be ignored if output_type != "issue".
40+
#
41+
# Default: "[Repolinter] Open Source Policy Issues"
42+
output_name: '[Repolinter] Tier 3 OSS Policy Issues'
43+
44+
# The name to use for the issue label created by repolinter-action. This name
45+
# should be unique to repolinter-action (i.e. not used by any other issue) to
46+
# prevent repolinter-action from getting confused.
47+
#
48+
# This option will be ignored if output_type != "issue".
49+
#
50+
# Default: "repolinter"
51+
label_name: 'Tier 3 Remediation'
52+
53+
# The color to use for the issue label created by repolinter-action. The value
54+
# for this option should be an unprefixed RRGGBB hex string (ex. ff568a).
55+
# The default value is a shade of yellow.
56+
#
57+
# This option will be ignored if output_type != "issue".
58+
#
59+
# Default: "fbca04"
60+
label_color: 'ff69b4'
61+
62+
# Personal access token (PAT) used to create an issue on this repository.
63+
# This token is optional and only required if this actions is configured to
64+
# output an issue (see `output_type`). This token must have the `public_repo`
65+
# scope for the current repository in order to work properly.
66+
#
67+
# [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)
68+
#
69+
# Default: ${{ github.token }}
70+
token: ${{ secrets.METRICS_GITHUB_TOKEN }}
771
run-pylint:
872
name: runner / pylint
973
permissions: write-all

0 commit comments

Comments
 (0)