MCPcopy Create free account
hub / github.com/cli/cli / loadBundleFromJSONFile

Function loadBundleFromJSONFile

pkg/cmd/attestation/verification/attestation.go:49–56  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

47}
48
49func loadBundleFromJSONFile(path string) ([]*api.Attestation, error) {
50 b, err := bundle.LoadJSONFromPath(path)
51 if err != nil {
52 return nil, err
53 }
54
55 return []*api.Attestation{{Bundle: b}}, nil
56}
57
58func loadBundlesFromJSONLinesFile(path string) ([]*api.Attestation, error) {
59 fileContent, err := os.ReadFile(path)

Callers 2

GetLocalAttestationsFunction · 0.85

Calls

no outgoing calls

Tested by 1