From 75fd8d6619cb45e3253209fc5944d6e6cfd0d139 Mon Sep 17 00:00:00 2001 From: el combo <24692334+ccombe@users.noreply.github.com> Date: Fri, 16 Oct 2026 19:43:06 +1100 Subject: [PATCH 1/3] ci: lint commit messages with commitlint --- .github/workflows/commitlint.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/commitlint.yml diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 0000000..a9a7176 --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,15 @@ +name: Commits + +on: + push: + branches: [master, main] + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: wagoid/commitlint-github-action@v5 From edd91e666200287b379467766496d972478a7172 Mon Sep 17 00:00:00 2001 From: el combo <24692334+ccombe@users.noreply.github.com> Date: Fri, 16 Oct 2026 19:49:13 +1100 Subject: [PATCH 2/3] ci: grant commitlint PR read permission --- .github/workflows/commitlint.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index a9a7176..09b92a8 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -5,6 +5,10 @@ on: branches: [master, main] pull_request: +permissions: + contents: read + pull-requests: read + jobs: lint: runs-on: ubuntu-latest From 9f0ec77f50bd8ee9704508fd08fc1e372b0479cc Mon Sep 17 00:00:00 2001 From: el combo <24692334+ccombe@users.noreply.github.com> Date: Fri, 16 Oct 2026 19:53:36 +1100 Subject: [PATCH 3/3] ci: grant commitlint PR read permission --- .github/workflows/commitlint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 09b92a8..b737135 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -13,7 +13,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: fetch-depth: 0 - - uses: wagoid/commitlint-github-action@v5 + - uses: wagoid/commitlint-github-action@9763196e10f27aef304c9b8b660d31d97fce0f99 # v5