Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pritesh Bandi <pritesb@amazon.com>
  • Loading branch information
Pritesh Bandi committed Dec 2, 2022
1 parent a04964a commit 42bb38d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/notation/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,9 @@ func prepareSigningContent(ctx context.Context, opts *signOpts) (ocispec.Descrip
signOpts := notation.SignOptions{
ArtifactReference: opts.reference,
SignatureMediaType: mediaType,
ExpiryDuration: opts.expiry,
PluginConfig: pluginConfig,
}

if opts.expiry != 0 {
signOpts.ExpiryDuration = &opts.expiry
}

return manifestDesc, signOpts, nil
}

0 comments on commit 42bb38d

Please sign in to comment.