48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: main
|
|
paths:
|
|
- "**.sh"
|
|
- ".github/workflows/linter.yml"
|
|
- "bin/**"
|
|
pull_request:
|
|
branches: main
|
|
paths:
|
|
- "**.sh"
|
|
- ".github/workflows/linter.yml"
|
|
- "bin/**"
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
# To report GitHub Actions status checks
|
|
statuses: write
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
# super-linter needs the full git history to get the
|
|
# list of files that changed across commits
|
|
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
|