Skip to content

Commit

Permalink
Update cmd/notation/sign.go
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Zheng <patrickzheng@microsoft.com>
  • Loading branch information
byronchien and Two-Hearts committed Feb 3, 2023
1 parent b9ed6fd commit 27396c8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/notation/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ func prepareSigningContent(ctx context.Context, opts *signOpts, sigRepo notation
return notation.RemoteSignOptions{}, registry.Reference{}, err
}

signOpts := notation.RemoteSignOptions{}
signOpts.ArtifactReference = ref.String()
signOpts.SignatureMediaType = mediaType
signOpts.ExpiryDuration = opts.expiry
signOpts.PluginConfig = pluginConfig
signOpts.UserMetadata = userMetadata

signOpts := notation.RemoteSignOptions{
ArtifactReference: ref.String(),
SignatureMediaType: mediaType,
ExpiryDuration: opts.expiry,
PluginConfig: pluginConfig,
UserMetadata: userMetadata,
}
return signOpts, ref, nil
}

0 comments on commit 27396c8

Please sign in to comment.