From 912cd596e006a0c1fdcd2c3b097852939cb909bf Mon Sep 17 00:00:00 2001 From: CodeGit Date: Fri, 4 Sep 2026 07:28:23 +0100 Subject: [PATCH] ci: replace actions/checkout with manual tarball fetch in build-hello-app actions/checkout@v4 needs a Node.js runtime, which the kaniko executor:debug image doesn't have and has no package manager to install it with (confirmed via a throwaway podman run - no git, no node, not even /etc/os-release). Fetch the repo as a tarball from Forgejo's archive endpoint instead, using wget/tar, which are actually present in the image. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Y4YNpuC2bgT224suQLLJ7B --- .forgejo/workflows/build-hello-app.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build-hello-app.yml b/.forgejo/workflows/build-hello-app.yml index 944ab95..2e4e15e 100644 --- a/.forgejo/workflows/build-hello-app.yml +++ b/.forgejo/workflows/build-hello-app.yml @@ -16,7 +16,17 @@ jobs: image: gcr.io/kaniko-project/executor:debug options: --entrypoint "" steps: - - uses: actions/checkout@v4 + # actions/checkout@v4 needs a Node.js runtime, which this minimal + # kaniko image doesn't have (no package manager to add it either) - + # fetch the repo as a plain tarball from Forgejo's archive endpoint + # instead, using the tools that are actually present (wget, tar). + - name: Checkout (manual - no git/node in this image) + run: | + wget --header="Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ + -O /tmp/source.tar.gz \ + "https://git.boglabob.com/${{ github.repository }}/archive/${{ github.sha }}.tar.gz" + tar -xzf /tmp/source.tar.gz --strip-components=1 -C "${{ github.workspace }}" + rm /tmp/source.tar.gz - name: Write registry auth run: |