From d9c2035807ea67301d75cf263c46b30b6951a118 Mon Sep 17 00:00:00 2001 From: Daniel Arantes Loverde Date: Thu, 30 Jul 2026 17:48:47 -0300 Subject: [PATCH] [macos-runner] Replace actions/checkout@v4 with a plain git clone step actions/checkout@v4 is a JS action, and act_runner's host-executor JS action path hits a known upstream caching bug on this runner (nested hostexecutor/.cache/act path never gets the downloaded action, causing MODULE_NOT_FOUND on every run). Introducing a config.yaml to work around it (workdir_parent) triggers a separate act_runner bug requiring a Docker socket that doesn't exist on this Mac. Side-stepping both by doing the checkout as a plain shell git clone, which the host executor runs fine. --- .gitea/workflows/beta.yml | 6 +++++- .gitea/workflows/release.yml | 6 +++++- .gitea/workflows/test.yml | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/beta.yml b/.gitea/workflows/beta.yml index 3d6284c..067aacc 100644 --- a/.gitea/workflows/beta.yml +++ b/.gitea/workflows/beta.yml @@ -23,7 +23,11 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + run: | + REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" + AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" + git clone "$AUTH_URL" . + git checkout "${{ gitea.sha }}" - name: Set build number run: | diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index fac245f..3a3e743 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -23,7 +23,11 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + run: | + REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" + AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" + git clone "$AUTH_URL" . + git checkout "${{ gitea.sha }}" - name: Verify ASC secrets run: | diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 63b6471..23c40ca 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -18,7 +18,11 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + run: | + REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" + AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" + git clone "$AUTH_URL" . + git checkout "${{ gitea.sha }}" - name: Run unit tests run: |