From d1de760462e0d623b35a49c414bdca49c28ec3f7 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 3 Oct 2026 17:35:39 +0000 Subject: [PATCH] fix(ci): use single-arg gh api --jq in attestation eligibility step gh api --jq accepts one expression; a separate -r flag is parsed as a second argument and fails with 'accepts 1 arg(s), received 2', breaking publish-server-image on main after the attestation gate landed. Co-authored-by: cynarAI --- .github/workflows/publish-server-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-server-image.yml b/.github/workflows/publish-server-image.yml index 791958c..abd0398 100644 --- a/.github/workflows/publish-server-image.yml +++ b/.github/workflows/publish-server-image.yml @@ -263,8 +263,8 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -euo pipefail - owner_type="$(gh api "repos/${GITHUB_REPOSITORY}" --jq -r '.owner.type')" - private="$(gh api "repos/${GITHUB_REPOSITORY}" --jq -r '.private')" + owner_type="$(gh api "repos/${GITHUB_REPOSITORY}" --jq '.owner.type')" + private="$(gh api "repos/${GITHUB_REPOSITORY}" --jq '.private')" if [[ "$owner_type" == "User" && "$private" == "true" ]]; then echo "enabled=false" >> "$GITHUB_OUTPUT" echo "Skipping registry attestation: unavailable for private repositories on personal accounts."