-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix verification example #194
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, @cmurphy! Just a couple of suggestions to remove these already default values.
docs/verification.md
Outdated
@@ -58,7 +58,13 @@ To verify a bundle with the Go API, you'll need to: | |||
Going through this step-by-step, we'll start by loading the trusted root from the Sigstore TUF repo: | |||
|
|||
```go | |||
trustedrootJSON, err := tuf.GetTrustedrootJSON("tuf-repo-cdn.sigstore.dev", "tufcache") | |||
opts := tuf.DefaultOptions() | |||
opts.RepositoryBaseURL = "https://tuf-repo-cdn.sigstore.dev" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the default base URL, so we can omit this line.
opts.RepositoryBaseURL = "https://tuf-repo-cdn.sigstore.dev" |
docs/verification.md
Outdated
@@ -187,7 +193,13 @@ import ( | |||
) | |||
|
|||
func main() { | |||
trustedrootJSON, err := tuf.GetTrustedrootJSON("tuf-repo-cdn.sigstore.dev", "tufcache") | |||
opts := tuf.DefaultOptions() | |||
opts.RepositoryBaseURL = "https://tuf-repo-cdn.sigstore.dev" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opts.RepositoryBaseURL = "https://tuf-repo-cdn.sigstore.dev" |
`GetTrustedrootJSON` was removed in 40d7422, so update the example for the new API. Signed-off-by: Colleen Murphy <[email protected]>
Fixed, thanks! |
GetTrustedrootJSON
was removed in 40d7422, so update the example for the new API.Summary
Release Note
Documentation