From 4cc50afb5f2c85103b437e0d17d4e7cf2f742be5 Mon Sep 17 00:00:00 2001 From: k3nny Date: Thu, 11 Jun 2026 01:04:27 +0200 Subject: [PATCH] fix(build): replace actions/checkout@v4 with plain git clone 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 --- .gitea/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 110ed9b..24e5280 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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: