@@ -181,19 +181,19 @@ brews:
181181 license : " Apache-2.0"
182182 install : |
183183 bin.install "aicr"
184- # Install attestation bundle next to binary (aicr looks for <binary>-attestation.sigstore.json)
185184 bin.install "aicr-attestation.sigstore.json" if File.exist? "aicr-attestation.sigstore.json"
186- # Verify provenance attestation if cosign is available
187- if File.exist?(bin/"aicr-attestation.sigstore.json") && which("cosign")
188- system "cosign", "verify-blob-attestation",
189- "--bundle", bin/"aicr-attestation.sigstore.json",
190- "--type", "https://slsa.dev/provenance/v1",
191- "--certificate-oidc-issuer", "https://token.actions.githubusercontent.com",
192- "--certificate-identity-regexp", "https://github.com/NVIDIA/aicr/.github/workflows/on-tag\\.yaml@refs/tags/.*",
193- bin/"aicr"
194- ohai "Provenance verified — binary built by github.com/NVIDIA/aicr CI pipeline"
195- end
185+ test : |
186+ assert_match version.to_s, shell_output("#{bin}/aicr version")
196187 caveats : |
197- To enable supply chain verification, update the bundle attestation root:
188+ To verify supply-chain provenance (requires cosign):
189+
190+ cosign verify-blob-attestation \
191+ --bundle #{opt_bin}/aicr-attestation.sigstore.json \
192+ --type https://slsa.dev/provenance/v1 \
193+ --certificate-oidc-issuer https://token.actions.githubusercontent.com \
194+ --certificate-identity-regexp "https://github.com/NVIDIA/aicr/.github/workflows/on-tag\\.yaml@refs/tags/.*" \
195+ #{opt_bin}/aicr
196+
197+ To update the trust root for bundle attestation:
198198
199199 aicr trust update
0 commit comments