Update linter.yml

This commit is contained in:
Erik Westrup
2025-04-21 10:09:51 -07:00
committed by GitHub
parent 232dc7e90f
commit 3797979dd3

View File

@@ -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