Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
Signed-off-by: Ramon Petgrave <[email protected]>
  • Loading branch information
ramonpetgrave64 committed Jun 10, 2024
1 parent 5b1c921 commit cde7688
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/API-Library.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ func doVerify() (*apiUtils.TrustedBuilderID, error) {
if err != nil {
return nil, fmt.Errorf("creating SigstoreTUF client: %w", err)
}
_, outBuilderID, err := apiVerify.VerifyNpmPackageWithSigstoreTUFClient(context.Background(), attestations, tarballHash, provenanceOpts, builderOpts, client)
verifierOptioners := []options.VerifierOptioner{
options.WithSigstoreTUFClient(client),
}
_, outBuilderID, err := apiVerify.VerifyNpmPackageWithSigstoreTUFClient(context.Background(), attestations, tarballHash, provenanceOpts, builderOpts, verifierOptioners...)
if err != nil {
return nil, fmt.Errorf("Verifying npm package: FAILED: %w", err)
}
Expand Down
1 change: 0 additions & 1 deletion verifiers/internal/gha/npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ func getVerifierOpts(verifierOptioners ...options.VerifierOptioner) (*options.Ve
for _, optioner := range verifierOptioners {
optioner(verifierOpts)
}

// Set the Sigstore TUF client, if not set.
if verifierOpts.SigstoreTUFClient == nil {
sigstoreTUFClient, err := getDefaultSigstoreTUFClient()
Expand Down

0 comments on commit cde7688

Please sign in to comment.