From aae9b0f771f61106056273c12cac9b91e582be88 Mon Sep 17 00:00:00 2001 From: user Date: Sun, 22 Feb 2026 08:08:22 +0100 Subject: [PATCH] fix: replace all actions/checkout with git clone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The linux runner (anvil) has no Node.js, so actions/checkout@v4 fails on every job. Use manual git clone consistently across all jobs — container and host alike. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6e38267..481a6c5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -43,9 +43,8 @@ jobs: secrets: runs-on: linux steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - name: Checkout + run: git clone --branch "${GITHUB_REF_NAME}" "https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" . - name: Scan for secrets run: | podman run --rm \ @@ -58,7 +57,8 @@ jobs: needs: [test, secrets] if: github.event_name == 'push' && github.ref == 'refs/heads/master' steps: - - uses: actions/checkout@v4 + - name: Checkout + run: git clone --depth 1 --branch "${GITHUB_REF_NAME}" "https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" . - name: Login to Harbor run: echo "$HARBOR_PASS" | podman login -u "$HARBOR_USER" --password-stdin harbor.mymx.me env: