action-super-linter.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. name: Super Linter
  2. on:
  3. workflow_dispatch:
  4. push:
  5. branches:
  6. - main
  7. - master
  8. - develop
  9. pull_request:
  10. concurrency:
  11. group: super-linter-${{ github.event.pull_request.number || github.ref }}
  12. cancel-in-progress: true
  13. permissions: {}
  14. jobs:
  15. build:
  16. name: Lint
  17. runs-on: ubuntu-latest
  18. permissions:
  19. contents: read
  20. packages: read
  21. # To report GitHub Actions status checks
  22. statuses: write
  23. steps:
  24. - name: Checkout code
  25. uses: actions/checkout@v7
  26. with:
  27. # super-linter needs the full git history to get the
  28. # list of files that changed across commits
  29. fetch-depth: 0
  30. persist-credentials: false
  31. - name: Install Prettier plugins (for summary formatting)
  32. run: |
  33. npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template || true
  34. - name: Super-linter
  35. uses: super-linter/super-linter@v9
  36. env:
  37. # To report GitHub Actions status checks
  38. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  39. MULTI_STATUS: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
  40. VALIDATE_BIOME_FORMAT: false
  41. VALIDATE_BIOME_LINT: false
  42. VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
  43. VALIDATE_JSCPD: false
  44. VALIDATE_JSON_PRETTIER: false
  45. VALIDATE_MARKDOWN_PRETTIER: false
  46. VALIDATE_NATURAL_LANGUAGE: false
  47. VALIDATE_SHELL_SHFMT: false
  48. VALIDATE_TRIVY: false
  49. VALIDATE_YAML_PRETTIER: false