From 7f7530664b6631446963de6d4e4236c536c35bc4 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 19 Aug 2026 18:26:10 +0000 Subject: [PATCH] ci: pass placeholder token to cache-nix-action cache-nix-action@v7 reads its token input as required in both restore and save; its github.token default is empty under ngit-ci (no GITHUB_TOKEN is injected), so both phases threw "Input required and not supplied: token" and, hidden by continue-on-error, the Nix store cache never restored or saved. Any non-empty value satisfies the check and is never transmitted while purge (default off) stays disabled. Validation: matches the fix applied to ngit-ci's own workflows and its documented snippet; the next push-triggered run should show the restore/save steps succeeding instead of failing fast. --- .ngit/act/workflows/rust_ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ngit/act/workflows/rust_ci.yaml b/.ngit/act/workflows/rust_ci.yaml index e4974e1..dc9710c 100644 --- a/.ngit/act/workflows/rust_ci.yaml +++ b/.ngit/act/workflows/rust_ci.yaml @@ -28,6 +28,9 @@ jobs: with: primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', 'flake.lock') }} restore-prefixes-first-match: nix-${{ runner.os }}- + # cache-nix-action requires a token even with purge disabled; + # github.token is empty under ngit-ci, so any non-empty value works. + token: unused - name: Restore Rust build cache continue-on-error: true uses: actions/cache@v4