diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ba20cd3..7c92f38 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,6 +25,7 @@ jobs: - name: Checkout run: | git clone --depth=50 https://${{ gitea.actor }}:${{ gitea.token }}@git.produktor.io/${{ gitea.repository }}.git . + git fetch --depth=1 origin ${{ gitea.sha }} git checkout ${{ gitea.sha }} - name: Install dependencies @@ -62,6 +63,7 @@ jobs: - name: Checkout run: | git clone --depth=1 https://${{ gitea.actor }}:${{ gitea.token }}@git.produktor.io/${{ gitea.repository }}.git . + git fetch --depth=1 origin ${{ gitea.sha }} git checkout ${{ gitea.sha }} - name: Install Trivy