| 1 |
# https://github.com/super-linter/super-linter |
| 2 |
name: Super-Linter |
| 3 |
|
| 4 |
on: [pull_request] |
| 5 |
|
| 6 |
permissions: |
| 7 |
contents: read |
| 8 |
|
| 9 |
jobs: |
| 10 |
build: |
| 11 |
permissions: |
| 12 |
contents: read # for actions/checkout to fetch code |
| 13 |
statuses: write # for github/super-linter/slim to mark status of each linter run |
| 14 |
name: Lint Code Base |
| 15 |
runs-on: ubuntu-latest |
| 16 |
steps: |
| 17 |
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" |
| 18 |
uses: actions/checkout@v4 |
| 19 |
with: |
| 20 |
# Full git history is needed to get a proper list of changed files within `super-linter` |
| 21 |
fetch-depth: 0 |
| 22 |
- name: Lint Code Base |
| 23 |
uses: super-linter/super-linter/[email protected] |
| 24 |
env: |
| 25 |
ERROR_ON_MISSING_EXEC_BIT: true |
| 26 |
VALIDATE_BASH: true |
| 27 |
# VALIDATE_BASH_EXEC: true |
| 28 |
# VALIDATE_EDITORCONFIG: true |
| 29 |
# VALIDATE_SHELL_SHFMT: true |
| 30 |
DEFAULT_BRANCH: master |
| 31 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 32 |
VALIDATE_ALL_CODEBASE: false |