MCPcopy Index your code
hub / github.com/cli/cli / SigstoreBundle

Function SigstoreBundle

pkg/cmd/attestation/test/data/data.go:17–24  ·  view source on GitHub ↗

SigstoreBundle returns a test sigstore-go bundle.Bundle

(t *testing.T)

Source from the content-addressed store, hash-verified

15
16// SigstoreBundle returns a test sigstore-go bundle.Bundle
17func SigstoreBundle(t *testing.T) *bundle.Bundle {
18 b := &bundle.Bundle{}
19 err := b.UnmarshalJSON(SigstoreBundleRaw)
20 if err != nil {
21 t.Fatalf("failed to unmarshal sigstore bundle: %v", err)
22 }
23 return b
24}
25
26func GitHubReleaseBundle(t *testing.T) *bundle.Bundle {
27 b := &bundle.Bundle{}

Callers 5

VerifyMethod · 0.92
makeTestAttestationFunction · 0.92
makeTestAttestationFunction · 0.92

Calls

no outgoing calls