diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index d60c0ddf..6a0bf115 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -383,8 +383,19 @@ jobs: image: golang:1.26-bookworm steps: + # Plain git, not actions/checkout: that action runs on node, which the + # golang image does not carry. This step is dash (rule 81). - name: Checkout - uses: actions/checkout@v4 + env: + TOKEN: ${{ github.token }} + run: | + set -eu + auth=$(printf 'x-access-token:%s' "$TOKEN" | base64 -w0) + git init -q . + git remote add origin "${{ github.server_url }}/${{ github.repository }}.git" + git -c http.extraHeader="Authorization: Basic ${auth}" fetch -q --depth 1 origin "${{ github.sha }}" + git checkout -q FETCH_HEAD + git log -1 --format='%H %s' - name: govulncheck run: |