From 8567ff10623e25737764e2b52cfaf8cfb987e404 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Wed, 17 Jan 2024 18:53:55 +0000 Subject: [PATCH] Add checkout step to the commit lint Signed-off-by: Andrea Frittoli --- .github/workflows/linter.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index b1d4579..fa72d53 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -26,10 +26,10 @@ jobs: name: Lint Commit Messages runs-on: ubuntu-20.04 steps: + - name: Checkout repository + uses: actions/checkout@v4 - name: Check Commit Lint uses: wagoid/commitlint-github-action@v5.0.0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} lint_check: name: Rust - lint_${{ matrix.lint_projects }} @@ -44,9 +44,7 @@ jobs: - cargo_toml_files steps: - name: Checkout repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - with: - ref: ${{ github.event.inputs.commit_sha }} + uses: actions/checkout@v4 - name: Run lint ${{ matrix.lint_projects }} run: make -f Makefile lint_${{ matrix.lint_projects }}