Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(ci): use digest-based signing for cosign v3+ compatibility

LearningCircuit3a8b67827194
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index e4b102d4b3..77c5848a04 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -247,22 +247,28 @@ jobs:
fi
done <<< "$TAGS"
+ # Get digest of the primary tag for signing (required by cosign v3+)
+ DIGEST=$(docker buildx imagetools inspect "$FIRST_TAG" --format "{{json .Manifest.Digest}}" | tr -d '"')
+ echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"
+ echo "Image digest: $DIGEST"
+
- name: Sign Docker images with Cosign
env:
- TAGS: ${{ steps.meta.outputs.tags }}
+ PRIMARY_TAG: ${{ steps.manifest.outputs.primary_tag }}
+ DIGEST: ${{ steps.manifest.outputs.digest }}
run: |
set -euo pipefail
- # Sign each image tag using keyless signing with GitHub OIDC
- while IFS= read -r tag; do
- if [ -n "$tag" ]; then
- echo "Signing image: $tag"
- cosign sign --yes "$tag"
- fi
- done <<< "$TAGS"
+ # Sign using digest reference (required by cosign v3+)
+ # All tags point to the same manifest, so we only need to sign once by digest
+ IMAGE_NAME="${PRIMARY_TAG%:*}"
+ IMAGE_REF="${IMAGE_NAME}@${DIGEST}"
+ echo "Signing image by digest: $IMAGE_REF"
+ cosign sign --yes "$IMAGE_REF"
- name: Generate SLSA provenance attestation
env:
PRIMARY_TAG: ${{ steps.manifest.outputs.primary_tag }}
+ DIGEST: ${{ steps.manifest.outputs.digest }}
run: |
set -euo pipefail
# Generate SLSA provenance predicate
@@ -303,34 +309,43 @@ jobs:
}
EOF
- # Attach provenance to image
- cosign attest --yes --predicate provenance.json --type slsaprovenance "$PRIMARY_TAG"
+ # Attach provenance to image using digest reference
+ IMAGE_NAME="${PRIMARY_TAG%:*}"
+ IMAGE_REF="${IMAGE_NAME}@${DIGEST}"
+ cosign attest --yes --predicate provenance.json --type slsaprovenance "$IMAGE_REF"
- name: Verify image signature
env:
PRIMARY_TAG: ${{ steps.manifest.outputs.primary_tag }}
+ DIGEST: ${{ steps.manifest.outputs.digest }}
run: |
set -euo pipefail
- echo "Verifying signature for: $PRIMARY_TAG"
+ IMAGE_NAME="${PRIMARY_TAG%:*}"
+ IMAGE_REF="${IMAGE_NAME}@${DIGEST}"
+ echo "Verifying signature for: $IMAGE_REF"
cosign verify \
--certificate-identity-regexp="https://github.com/${{ github.repository }}" \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
- "$PRIMARY_TAG"
+ "$IMAGE_REF"
- name: Attach SBOM to image
env:
PRIMARY_TAG: ${{ steps.manifest.outputs.primary_tag }}
+ DIGEST: ${{ steps.manifest.outputs.digest }}
run: |
set -euo pipefail
+ IMAGE_NAME="${PRIMARY_TAG%:*}"
+ IMAGE_REF="${IMAGE_NAME}@${DIGEST}"
+
# Generate SBOM using syft
- docker pull "$PRIMARY_TAG"
- syft "$PRIMARY_TAG" -o spdx-json > sbom.spdx.json
+ docker pull "$IMAGE_REF"
+ syft "$IMAGE_REF" -o spdx-json > sbom.spdx.json
# Attach SBOM to image
- cosign attach sbom --sbom sbom.spdx.json "$PRIMARY_TAG"
+ cosign attach sbom --sbom sbom.spdx.json "$IMAGE_REF"
# Sign the SBOM
- cosign sign --yes --attachment sbom "$PRIMARY_TAG"
+ cosign sign --yes --attachment sbom "$IMAGE_REF"
- name: Upload SBOM artifact
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0