From e3d3584adb9375c2ae8a2168f16b568d4596592e Mon Sep 17 00:00:00 2001 From: David Niehues <7667041+DavidNiehues@users.noreply.github.com> Date: Tue, 22 Apr 2025 13:03:34 +0200 Subject: [PATCH] fix(ci+supply-chain+dependabot): Checkout correct branch in the supply chain checks for cargo-vet --- .github/workflows/supply-chain.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/supply-chain.yml b/.github/workflows/supply-chain.yml index f6889ea..effbb59 100644 --- a/.github/workflows/supply-chain.yml +++ b/.github/workflows/supply-chain.yml @@ -78,6 +78,8 @@ jobs: - name: Commit and push changes for dependabot PRs if: success() && github.actor == 'dependabot[bot]' run: | + git fetch origin ${{ github.head_ref }} + git switch ${{ github.head_ref }} git config --global user.name "github-actions[bot]" git config --global user.email "github-actions@github.com" git add supply-chain/*