chore(go.mod): upgrade trivy and cosign (#1387)

Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
This commit is contained in:
Andreea Lupu
2023-04-27 19:35:10 +03:00
committed by GitHub
parent 07bfc8ab95
commit 40bf76add5
15 changed files with 393 additions and 901 deletions
+3 -3
View File
@@ -104,11 +104,11 @@ function teardown_file() {
run cosign initialize
[ "$status" -eq 0 ]
run cosign generate-key-pair
run cosign generate-key-pair --output-key-prefix "cosign-sign-test"
[ "$status" -eq 0 ]
run cosign sign --key cosign.key localhost:8080/annotations:latest --yes
run cosign sign --key cosign-sign-test.key localhost:8080/annotations:latest --yes
[ "$status" -eq 0 ]
run cosign verify --key cosign.pub localhost:8080/annotations:latest
run cosign verify --key cosign-sign-test.pub localhost:8080/annotations:latest
[ "$status" -eq 0 ]
local sigName=$(echo "${lines[-1]}" | jq '.[].critical.image."docker-manifest-digest"')
[ "$status" -eq 0 ]
+5 -5
View File
@@ -239,11 +239,11 @@ function teardown_file() {
@test "sign/verify with cosign" {
run cosign initialize
[ "$status" -eq 0 ]
run cosign generate-key-pair
run cosign generate-key-pair --output-key-prefix "cosign-sign-sync-test"
[ "$status" -eq 0 ]
run cosign sign --key cosign.key localhost:9000/golang:1.20 --yes
run cosign sign --key cosign-sign-sync-test.key localhost:9000/golang:1.20 --yes
[ "$status" -eq 0 ]
run cosign verify --key cosign.pub localhost:9000/golang:1.20
run cosign verify --key cosign-sign-sync-test.pub localhost:9000/golang:1.20
[ "$status" -eq 0 ]
}
@@ -287,7 +287,7 @@ EOF
run notation verify --plain-http localhost:8081/golang:1.20
[ "$status" -eq 0 ]
run cosign verify --key cosign.pub localhost:8081/golang:1.20
run cosign verify --key cosign-sign-sync-test.pub localhost:8081/golang:1.20
[ "$status" -eq 0 ]
}
@@ -295,7 +295,7 @@ EOF
run notation verify --plain-http localhost:8082/golang:1.20
[ "$status" -eq 0 ]
run cosign verify --key cosign.pub localhost:8082/golang:1.20
run cosign verify --key cosign-sign-sync-test.pub localhost:8082/golang:1.20
[ "$status" -eq 0 ]
}