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

Changed gitleaks and repolinter workflows #224

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "run-checks"
name: "run-linting-checks"
on:
push:
branches:
Expand All @@ -14,12 +14,17 @@ jobs:
name: Tier 3 Checks
needs: resolve-repolinter-json
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
{% raw %}
RAW_JSON: ${{ needs.resolve-repolinter-json.outputs.raw-json }}
{% endraw %}
steps:
- uses: actions/checkout@v4
- run: echo $RAW_JSON > repolinter.json
- uses: newrelic/repolinter-action@v1
- uses: DSACMS/repolinter-action@main
with:
# A path to the JSON/YAML Repolinter ruleset to use, relative to the workflow
# working directory (i.e. under `$GITHUB_WORKSPACE`).
Expand All @@ -39,7 +44,7 @@ jobs:
# non-intrusive notification.
#
# Default: "exit-code"
output_type: 'issue'
output_type: 'pull-request'

# 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
Expand All @@ -48,10 +53,10 @@ jobs:
# This option will be ignored if output_type != "issue".
#
# Default: "[Repolinter] Open Source Policy Issues"
output_name: '[Repolinter] Tier 3 Repository Hygiene Issue'
label_name: 'Tier 3 Remediation'
label_color: 'ff69b4'
pull_request_labels: 'repolinter, cms-oss, cms-gov'

# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
token: ${{ secrets.pat }}
{% raw %}
token: ${{ secrets.REPOLINTER_AUTO_TOKEN }}
{% endraw %}
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
name: Tier 1 Checks
needs: resolve-repolinter-json
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
{% raw %}
RAW_JSON: ${{ needs.resolve-repolinter-json.outputs.raw-json }}
{% endraw %}
steps:
- uses: actions/checkout@v4
- run: echo $RAW_JSON > repolinter.json
- uses: newrelic/repolinter-action@v1
- uses: DSACMS/repolinter-action@main
with:
# A path to the JSON/YAML Repolinter ruleset to use, relative to the workflow
# working directory (i.e. under `$GITHUB_WORKSPACE`).
Expand All @@ -41,7 +44,7 @@ jobs:
# non-intrusive notification.
#
# Default: "exit-code"
output_type: 'issue'
output_type: 'pull-request'

# 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
Expand All @@ -50,7 +53,7 @@ jobs:
# This option will be ignored if output_type != "issue".
#
# Default: "[Repolinter] Open Source Policy Issues"
output_name: '[Repolinter] Tier 1 Repository Hygiene Issue'
pull_request_labels: 'repolinter, cms-oss, cms-gov'

# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ jobs:
name: Run gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
{% raw %}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
{% endraw %}
- uses: actions/checkout@v3
with: {fetch-depth: 0}

- name: Check for GitLeaks
uses: gacts/gitleaks@v1
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
name: Tier 2 Checks
needs: resolve-repolinter-json
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
{% raw %}
RAW_JSON: ${{ needs.resolve-repolinter-json.outputs.raw-json }}
{% endraw %}
steps:
- uses: actions/checkout@v4
- run: echo $RAW_JSON > repolinter.json
- uses: newrelic/repolinter-action@v1
- uses: DSACMS/repolinter-action@main
with:
# A path to the JSON/YAML Repolinter ruleset to use, relative to the workflow
# working directory (i.e. under `$GITHUB_WORKSPACE`).
Expand All @@ -41,7 +44,7 @@ jobs:
# non-intrusive notification.
#
# Default: "exit-code"
output_type: 'issue'
output_type: 'pull-request'

# 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
Expand All @@ -50,7 +53,7 @@ jobs:
# This option will be ignored if output_type != "issue".
#
# Default: "[Repolinter] Open Source Policy Issues"
output_name: '[Repolinter] Tier 2 Repository Hygiene Issue'
pull_request_labels: 'repolinter, cms-oss, cms-gov'

# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ jobs:
name: Run gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
{% raw %}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
{% endraw %}
- uses: actions/checkout@v3
with: {fetch-depth: 0}

- name: Check for GitLeaks
uses: gacts/gitleaks@v1
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
name: Tier 3 Checks
needs: resolve-repolinter-json
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
{% raw %}
RAW_JSON: ${{ needs.resolve-repolinter-json.outputs.raw-json }}
{% endraw %}
steps:
- uses: actions/checkout@v4
- run: echo $RAW_JSON > repolinter.json
- uses: newrelic/repolinter-action@v1
- uses: DSACMS/repolinter-action@main
with:
# A path to the JSON/YAML Repolinter ruleset to use, relative to the workflow
# working directory (i.e. under `$GITHUB_WORKSPACE`).
Expand All @@ -41,7 +44,7 @@ jobs:
# non-intrusive notification.
#
# Default: "exit-code"
output_type: 'issue'
output_type: 'pull-request'

# 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
Expand All @@ -50,7 +53,7 @@ jobs:
# This option will be ignored if output_type != "issue".
#
# Default: "[Repolinter] Open Source Policy Issues"
output_name: '[Repolinter] Tier 3 Repository Hygiene Issue'
pull_request_labels: 'repolinter, cms-oss, cms-gov'

# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ jobs:
name: Run gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
{% raw %}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
{% endraw %}
- uses: actions/checkout@v3
with: {fetch-depth: 0}

- name: Check for GitLeaks
uses: gacts/gitleaks@v1
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
name: Tier 4 Checks
needs: resolve-repolinter-json
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
{% raw %}
RAW_JSON: ${{ needs.resolve-repolinter-json.outputs.raw-json }}
{% endraw %}
steps:
- uses: actions/checkout@v4
- run: echo $RAW_JSON > repolinter.json
- uses: newrelic/repolinter-action@v1
- uses: DSACMS/repolinter-action@main
with:
# A path to the JSON/YAML Repolinter ruleset to use, relative to the workflow
# working directory (i.e. under `$GITHUB_WORKSPACE`).
Expand All @@ -41,7 +44,7 @@ jobs:
# non-intrusive notification.
#
# Default: "exit-code"
output_type: 'issue'
output_type: 'pull-request'

# 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
Expand All @@ -50,7 +53,7 @@ jobs:
# This option will be ignored if output_type != "issue".
#
# Default: "[Repolinter] Open Source Policy Issues"
output_name: '[Repolinter] Tier 4 Repository Hygiene Issue'
pull_request_labels: 'repolinter, cms-oss, cms-gov'

# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ jobs:
name: Run gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
{% raw %}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
{% endraw %}
- uses: actions/checkout@v3
with: {fetch-depth: 0}

- name: Check for GitLeaks
uses: gacts/gitleaks@v1
Loading