Skip to content

Commit 3365abd

Browse files
committed
ci(super-linter): disable git commitlint without commit
1 parent 07625a0 commit 3365abd

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

‎.github/workflows/super-linter.yml‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,18 @@ jobs:
6565
- name: Lint Code Base
6666
uses: super-linter/super-linter@4ce20838b8ab83717e78138c5b3a1407148e0918 # v8.7.0
6767
env:
68-
VALIDATE_ALL_CODEBASE: true
69-
LINTER_RULES_PATH: .
70-
SAVE_SUPER_LINTER_SUMMARY: true
71-
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true
68+
BIOME_CONFIG_PATH: .biome.json
7269
DEFAULT_BRANCH: main
70+
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true
7371
ENFORCE_COMMITLINT_CONFIGURATION_CHECK: true
74-
TRIVY_SCANNERS: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 'vuln,misconfig,secret' || 'misconfig,secret'}}
75-
BIOME_CONFIG_PATH: .biome.json
76-
GITHUB_ACTIONS_ZIZMOR_CONFIG_FILE: .zizmor.yml
7772
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
GITHUB_ACTIONS_ZIZMOR_CONFIG_FILE: .zizmor.yml
7874
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
LINTER_RULES_PATH: .
76+
SAVE_SUPER_LINTER_SUMMARY: true
77+
TRIVY_SCANNERS: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 'vuln,misconfig,secret' || 'misconfig,secret'}}
78+
VALIDATE_ALL_CODEBASE: true
79+
# Only lint commit messages when the run was triggered by a commit
80+
# (push / pull_request); schedule and workflow_dispatch runs have no
81+
# triggering commit for commitlint to check.
82+
VALIDATE_GIT_COMMITLINT: ${{ (github.event_name == 'push' || github.event_name == 'pull_request') && 'true' || 'false' }}

0 commit comments

Comments
 (0)