fix dependabot alerts

https://github.com/project-zot/zot/pull/712
https://github.com/project-zot/zot/pull/714

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
Ramkumar Chinchani
2022-08-13 03:53:23 +00:00
committed by Ramkumar Chinchani
parent a702a2377e
commit 4b8e288cd3
6 changed files with 162 additions and 126 deletions
+1 -1
View File
@@ -3629,7 +3629,7 @@ func TestImageSignatures(t *testing.T) {
options.RegistryOptions{AllowInsecure: true},
map[string]interface{}{"tag": "1.0"},
[]string{fmt.Sprintf("localhost:%s/%s@%s", port, repoName, digest.String())},
"", "", true, "", "", "", false, false, "")
"", "", true, "", "", "", false, false, "", true)
So(err, ShouldBeNil)
// verify the image
+1 -1
View File
@@ -186,7 +186,7 @@ func signUsingCosign(port string) error {
options.RegistryOptions{AllowInsecure: true},
map[string]interface{}{"tag": "1.0"},
[]string{imageURL},
"", "", true, "", "", "", false, false, "")
"", "", true, "", "", "", false, false, "", true)
}
func signUsingNotary(port string) error {
+1 -1
View File
@@ -3989,7 +3989,7 @@ func signImage(tdir, port, repoName string, digest godigest.Digest) {
options.RegistryOptions{AllowInsecure: true},
map[string]interface{}{"tag": "1.0"},
[]string{fmt.Sprintf("localhost:%s/%s@%s", port, repoName, digest.String())},
"", "", true, "", "", "", false, false, "")
"", "", true, "", "", "", false, false, "", true)
if err != nil {
panic(err)
}