-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ on: | |
SENZING_MEMBERS: | ||
required: false | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
|
||
add-customer-submission-label: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ name: 'issue automation' | |
on: | ||
issues: | ||
types: | ||
- reopened | ||
- opened | ||
- reopened | ||
|
||
jobs: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: 'lint workflows' | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
validate-all-codebase: | ||
default: false | ||
description: 'Lint all files or only modified: true/false.' | ||
required: false | ||
type: boolean | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
statuses: write | ||
|
||
jobs: | ||
# In order to require linting as a status check we need to | ||
# run the overall workflow on every pr. | ||
# This is used to skip at the job level if there are no | ||
# changes to the workflow files. | ||
changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
workflows: ${{ steps.changes.outputs.workflows }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
filters: | | ||
workflows: | ||
- '.github/workflows/**' | ||
lint-workflows: | ||
name: Lint Workflows | ||
runs-on: ubuntu-latest | ||
needs: changes | ||
if: ${{ needs.changes.outputs.workflows == 'true' }} | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Lint Code Base | ||
uses: github/super-linter@v5 | ||
env: | ||
DEFAULT_BRANCH: main | ||
FILTER_REGEX_INCLUDE: .*.github/workflows/.* | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# only lint new and modified files | ||
VALIDATE_ALL_CODEBASE: false |