From d904689b3884b4ac1f6d1a6d62dd0f74a07c29dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20G=C3=B6ttsch?= Date: Thu, 16 Jul 2026 15:55:22 +0200 Subject: [PATCH] ci: pin actions to the node20 generation for the forge runner The forge's forgejo-runner (v6.3.1) only supports node runtimes up to node20, but resolves bare `uses:` from code.forgejo.org where checkout@v6 (and the other @v5/v6/v7 actions) declare `runs.using: node24` -> "must be one of [... node20 ...], got node24" -> job failed before any step ran. - checkout@v6->v4, cache@v5->v4, docker/{setup-buildx@v4->v3, login@v4->v3, build-push@v7->v6}: all node20. - jdx/mise-action isn't mirrored on code.forgejo.org; reference it by full github URL, pinned to @v2 (node20). Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/deploy.yml | 14 +++++++------- .github/workflows/push.yml | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b7f214e..9b8805f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,13 +24,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v4 - name: Install mise - uses: jdx/mise-action@v4 + uses: https://github.com/jdx/mise-action@v2 - name: Cache Cargo artifacts - uses: actions/cache@v5 + uses: actions/cache@v4 with: path: | ~/.cargo/registry/index/ @@ -63,13 +63,13 @@ jobs: needs: [check] steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4 + uses: docker/setup-buildx-action@v3 - name: Login to the forge container registry - uses: docker/login-action@v4 + uses: docker/login-action@v3 with: # Forgejo auto-provides GITHUB_TOKEN to the job; it can push packages # for this repo's owner (uberbau). No external registry / PAT needed. @@ -78,7 +78,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push container - uses: docker/build-push-action@v7 + uses: docker/build-push-action@v6 with: context: . push: true diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 63ece2a..6a186fc 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -13,13 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v4 - name: Install mise - uses: jdx/mise-action@v4 + uses: https://github.com/jdx/mise-action@v2 - name: Cache Cargo artifacts - uses: actions/cache@v5 + uses: actions/cache@v4 with: path: | ~/.cargo/registry/index/ @@ -51,13 +51,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v4 - name: Install mise - uses: jdx/mise-action@v4 + uses: https://github.com/jdx/mise-action@v2 - name: Cache Cargo artifacts - uses: actions/cache@v5 + uses: actions/cache@v4 with: path: | ~/.cargo/registry/index/