From d75b2bbca706b0356772ee84de8ee8c5c7b0e000 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sun, 15 Nov 2026 11:41:32 -0800 Subject: [PATCH] ci(pullfrog): fail the setup if the Nix daemon trusts the runner user trust-runner-user: false only stops the installer adding the runner to trusted-users; assert the daemon really treats it as untrusted, as the token guard does for the token, since neither runs before merge. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/pullfrog.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pullfrog.yml b/.github/workflows/pullfrog.yml index ee7b3f17..84c541a3 100644 --- a/.github/workflows/pullfrog.yml +++ b/.github/workflows/pullfrog.yml @@ -59,6 +59,10 @@ jobs: echo "the job token reached Nix's config" >&2 exit 1 fi + if ! nix store info --json | jq -e '.trusted == false or .trusted == 0' >/dev/null; then + echo "the Nix daemon trusts the runner user" >&2 + exit 1 + fi - name: Run agent uses: pullfrog/pullfrog@0741f79ecebfa4469a010644d2aed2d96d32d489 # v0.1.127 with: