From ac4cc77a4c18e9538eb6d5891e8d11cec8f81495 Mon Sep 17 00:00:00 2001 From: Alexander Gil Date: Wed, 21 Aug 2024 08:53:15 +0200 Subject: [PATCH] fix(ci): Remove `fetch-depth: 0` to get just last commit on commitlint Signed-off-by: Alexander Gil --- .github/workflows/commitlint.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index ac129eb..47c7cc6 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -1,6 +1,10 @@ name: Commitlint on: [push, pull_request] +permissions: + contents: read + pull-requests: read + jobs: lint: runs-on: ubuntu-latest @@ -8,8 +12,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: wagoid/commitlint-github-action@v6.0.2 with: configFile: './.commitlintrc.json'