mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
chore: fix dependabot alerts (#1409)
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
GitHub
parent
b7ef88c96d
commit
9534e0b88b
+4
-4
@@ -1176,12 +1176,12 @@ func SignWithNotation(keyName string, reference string, tdir string) error {
|
||||
|
||||
sigRepo := notreg.NewRepositoryWithOptions(remoteRepo, repositoryOpts)
|
||||
|
||||
sigOpts := notation.RemoteSignOptions{
|
||||
SignOptions: notation.SignOptions{
|
||||
ArtifactReference: ref.String(),
|
||||
sigOpts := notation.SignOptions{
|
||||
SignerSignOptions: notation.SignerSignOptions{
|
||||
SignatureMediaType: mediaType,
|
||||
PluginConfig: map[string]string{},
|
||||
},
|
||||
ArtifactReference: ref.String(),
|
||||
}
|
||||
|
||||
_, err = notation.Sign(ctx, newSigner, sigRepo, sigOpts)
|
||||
@@ -1287,7 +1287,7 @@ func VerifyWithNotation(reference string, tdir string) error {
|
||||
|
||||
configs := map[string]string{}
|
||||
|
||||
verifyOpts := notation.RemoteVerifyOptions{
|
||||
verifyOpts := notation.VerifyOptions{
|
||||
ArtifactReference: ref.String(),
|
||||
PluginConfig: configs,
|
||||
MaxSignatureAttempts: math.MaxInt64,
|
||||
|
||||
Reference in New Issue
Block a user