1--- 2# vi: ts=2 sw=2 et: 3# SPDX-License-Identifier: LGPL-2.1-or-later 4# https://github.com/marketplace/actions/super-linter 5name: Lint Code Base 6 7on: 8 pull_request: 9 branches: 10 - main 11 - v[0-9]+-stable 12 13permissions: 14 contents: read 15 16jobs: 17 build: 18 name: Lint Code Base 19 runs-on: ubuntu-latest 20 concurrency: 21 group: ${{ github.workflow }}-${{ github.ref }} 22 cancel-in-progress: true 23 24 steps: 25 - name: Repo checkout 26 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b 27 with: 28 # We need a full repo clone 29 fetch-depth: 0 30 31 - name: Lint Code Base 32 uses: github/super-linter/slim@ae4e373c56efad95924d9cc6b89624fdb2333007 33 env: 34 DEFAULT_BRANCH: main 35 MULTI_STATUS: false 36 # Excludes: 37 # - man/.* - all snippets in man pages (false positives due to 38 # missing shebangs) 39 # - .*\.(in|SKELETON) - all template/skeleton files 40 # - tools/coverity\.sh - external file (with some modifications) 41 FILTER_REGEX_EXCLUDE: .*/(man/.*|.*\.(in|SKELETON)|tools/coverity\.sh)$ 42 VALIDATE_ALL_CODEBASE: false 43 VALIDATE_BASH: true 44 VALIDATE_GITHUB_ACTIONS: true 45