fix(build): replace actions/checkout@v4 with plain git clone
release / Build and publish release (push) Successful in 1m3s

actions/checkout@v4 requires Node.js which is absent in golang:alpine.
Clone the repo directly with git using an oauth2 token in the URL,
removing the Node.js dependency entirely.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 01:04:27 +02:00
parent dfbafd8ed3
commit 4cc50afb5f
+9 -1
View File
@@ -16,7 +16,15 @@ jobs:
- name: Install tools
run: apk add --no-cache curl git jq
- uses: actions/checkout@v4
- name: Checkout
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
SERVER_URL: ${{ github.server_url }}
REPO: ${{ github.repository }}
REF: ${{ github.ref_name }}
run: |
git clone --depth 1 --branch "$REF" \
"$(echo "$SERVER_URL" | sed "s|https://|https://oauth2:${TOKEN}@|")/${REPO}.git" .
- name: Build Linux (amd64)
env: