SigstoreBundle returns a test sigstore-go bundle.Bundle
(t *testing.T)
| 15 | |
| 16 | // SigstoreBundle returns a test sigstore-go bundle.Bundle |
| 17 | func 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 | |
| 26 | func GitHubReleaseBundle(t *testing.T) *bundle.Bundle { |
| 27 | b := &bundle.Bundle{} |
no outgoing calls