MCPcopy Create free account
hub / github.com/google/go-github / usage

Function usage

example/verifyartifact/main.go:50–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48)
49
50func usage() {
51 fmt.Fprintln(os.Stderr, "This is an example of how to verify the provenance of an artifact using GitHub Attestations and the sigstore-go library.")
52 fmt.Fprintf(os.Stderr, "\nUsage: %v [flags]\n", os.Args[0])
53 fmt.Fprint(os.Stderr, "\nThe flags are:\n")
54 flag.PrintDefaults()
55 fmt.Fprintf(os.Stderr, `
56Example:
57Verifying a GitHub CLI artifact
58 %v -owner cli \
59 -artifact-digest 2ce2e480e3c3f7ca0af83418d3ebaeedacee135dbac94bd946d7d84edabcdb64 \
60 -expected-san https://github.com/cli/cli/.github/workflows/deployment.yml@refs/heads/trunk
61
62 See https://github.com/cli/cli/attestations/2543768 for a summary of the attestation.
63`, os.Args[0])
64}
65
66func main() {
67 flag.Parse()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…