From 92ed39671b48fa88403d84bdd55917e6d3087420 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Sat, 7 Nov 2026 16:16:16 +0100 Subject: [PATCH] ci: align commit checks with repository configuration --- .commitlintrc.json | 13 +++++++++++++ .github/dependabot.yml | 6 ++++++ .github/workflows/__shared-ci.yml | 17 +++++++++++++++++ .github/workflows/main-ci.yml | 5 ++++- .github/workflows/pull-request-ci.yml | 5 ++++- .github/workflows/release.yml | 3 +++ .github/workflows/semantic-pull-request.yml | 5 ++--- 7 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 .commitlintrc.json diff --git a/.commitlintrc.json b/.commitlintrc.json new file mode 100644 index 0000000..c9fc553 --- /dev/null +++ b/.commitlintrc.json @@ -0,0 +1,13 @@ +{ + "extends": ["@commitlint/config-conventional"], + "rules": { + "subject-case": [ + 1, + "never", + ["sentence-case", "start-case", "pascal-case", "upper-case"] + ], + "header-max-length": [1, "always", 100], + "body-max-line-length": [1, "always", 100], + "footer-max-line-length": [1, "always", 100] + } +} diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 917b7e2..11854cb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,6 +2,9 @@ version: 2 updates: - package-ecosystem: "github-actions" + commit-message: + prefix: build + include: scope directory: "/" open-pull-requests-limit: 20 schedule: @@ -14,6 +17,9 @@ updates: - "*" - package-ecosystem: "helm" + commit-message: + prefix: build + include: scope directory: "/codespace-like" open-pull-requests-limit: 20 schedule: diff --git a/.github/workflows/__shared-ci.yml b/.github/workflows/__shared-ci.yml index 544fd56..1a1b7aa 100644 --- a/.github/workflows/__shared-ci.yml +++ b/.github/workflows/__shared-ci.yml @@ -7,6 +7,23 @@ on: # yamllint disable-line rule:truthy permissions: {} jobs: + linter: + uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@90211d735aa0289702ddbd7eb95b218020ccadad # 2.0.2 + permissions: + actions: read + contents: read + issues: write + packages: read + pull-requests: write + security-events: write + statuses: write + with: + codeql-languages: "" + action-files: "" + linter-env: | + VALIDATE_JAVASCRIPT_TOOLCHAIN= + VALIDATE_PYTHON_TOOLCHAIN= + VALIDATE_GIT_COMMITLINT=true tests-charts: name: Tests - Charts diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index e8d19b5..6c4ed4f 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -19,8 +19,11 @@ jobs: permissions: actions: read contents: read - statuses: write + issues: write + packages: read + pull-requests: write security-events: write + statuses: write secrets: inherit helm-docs: diff --git a/.github/workflows/pull-request-ci.yml b/.github/workflows/pull-request-ci.yml index be6e9ae..168cbc8 100644 --- a/.github/workflows/pull-request-ci.yml +++ b/.github/workflows/pull-request-ci.yml @@ -18,6 +18,9 @@ jobs: permissions: actions: read contents: read - statuses: write + issues: write + packages: read + pull-requests: write security-events: write + statuses: write secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2bb103c..03e872c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,9 @@ jobs: permissions: actions: read contents: read + issues: write + packages: read + pull-requests: write security-events: write statuses: write secrets: inherit diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index f9971ff..86a69da 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -12,7 +12,6 @@ permissions: {} jobs: main: - uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@b17226e57c8ef31f860719766656ebb6df017218 # 0.31.6 permissions: - contents: write - pull-requests: write + contents: read + uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@90211d735aa0289702ddbd7eb95b218020ccadad # 2.0.2