Update linter.yml
This commit is contained in:
75
.github/workflows/linter.yml
vendored
75
.github/workflows/linter.yml
vendored
@@ -1,34 +1,47 @@
|
|||||||
name: Lint Code Base
|
name: Lint
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: main
|
branches: main
|
||||||
paths:
|
paths:
|
||||||
- "**.sh"
|
- "**.sh"
|
||||||
- ".github/workflows/linter.yml"
|
- ".github/workflows/linter.yml"
|
||||||
- "bin/**"
|
- "bin/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: main
|
branches: main
|
||||||
paths:
|
paths:
|
||||||
- "**.sh"
|
- "**.sh"
|
||||||
- ".github/workflows/linter.yml"
|
- ".github/workflows/linter.yml"
|
||||||
- "bin/**"
|
- "bin/**"
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Lint Code Base
|
name: Lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
|
||||||
- name: Checkout Code
|
permissions:
|
||||||
uses: actions/checkout@v2
|
contents: read
|
||||||
with:
|
packages: read
|
||||||
# Full git history is needed to get a proper list of changed files within `super-linter`
|
# To report GitHub Actions status checks
|
||||||
fetch-depth: 0
|
statuses: write
|
||||||
- name: Lint Code Base
|
|
||||||
uses: github/super-linter@v4
|
steps:
|
||||||
env:
|
- name: Checkout Code
|
||||||
VALIDATE_ALL_CODEBASE: true
|
uses: actions/checkout@v4
|
||||||
VALIDATE_BASH: true
|
with:
|
||||||
DEFAULT_BRANCH: main
|
# super-linter needs the full git history to get the
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# list of files that changed across commits
|
||||||
IGNORE_GENERATED_FILES: true
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Super-linter
|
||||||
|
uses: super-linter/super-linter@v7.3.0
|
||||||
|
env:
|
||||||
|
# To report GitHub Actions status checks
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
DEFAULT_BRANCH: main
|
||||||
|
VALIDATE_ALL_CODEBASE: true
|
||||||
|
VALIDATE_BASH: true
|
||||||
|
IGNORE_GENERATED_FILES: true
|
||||||
|
|||||||
Reference in New Issue
Block a user