ci(super-linter): disable git commitlint without commit #236
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| ################################# | |
| ################################# | |
| ## Super Linter GitHub Actions ## | |
| ################################# | |
| ################################# | |
| name: Lint Code Base | |
| # | |
| # Documentation: | |
| # https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
| # | |
| ############################# | |
| # Start the job on all push # | |
| ############################# | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| workflow_dispatch: | |
| permissions: {} | |
| ############### | |
| # Set the Job # | |
| ############### | |
| jobs: | |
| super-linter: | |
| # Name the Job | |
| name: Lint Code Base | |
| # Set the agent to run on | |
| runs-on: ubuntu-latest | |
| ############################################ | |
| # Grant status permission for MULTI_STATUS # | |
| ############################################ | |
| permissions: | |
| # Required to read the code | |
| contents: read | |
| # Required to access the container image | |
| packages: read | |
| # Required to write the status | |
| statuses: write | |
| ################## | |
| # Load all steps # | |
| ################## | |
| steps: | |
| ########################## | |
| # Checkout the code base # | |
| ########################## | |
| - name: Checkout Code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| # Full git history is needed to get a proper list of changed | |
| # files within `super-linter` | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| ################################ | |
| # Run Linter against code base # | |
| ################################ | |
| - name: Lint Code Base | |
| uses: super-linter/super-linter@4ce20838b8ab83717e78138c5b3a1407148e0918 # v8.7.0 | |
| env: | |
| BIOME_CONFIG_PATH: .biome.json | |
| DEFAULT_BRANCH: main | |
| ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true | |
| ENFORCE_COMMITLINT_CONFIGURATION_CHECK: true | |
| FILTER_REGEX_EXCLUDE: "(docs/_layouts/default\\.html)$" | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_ACTIONS_ZIZMOR_CONFIG_FILE: .zizmor.yml | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| LINTER_RULES_PATH: . | |
| SAVE_SUPER_LINTER_SUMMARY: true | |
| TRIVY_SCANNERS: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 'vuln,misconfig,secret' || 'misconfig,secret'}} | |
| VALIDATE_ALL_CODEBASE: true | |
| # Only lint commit messages when the run was triggered by a commit | |
| # (push / pull_request); schedule and workflow_dispatch runs have no | |
| # triggering commit for commitlint to check. | |
| VALIDATE_GIT_COMMITLINT: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 'false' || '' }} |