mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
fix(cve): blackbox cve tests now verifying actual cves (#1300)
Signed-off-by: Ana-Roberta Lisca <ana.kagome@yahoo.com>
This commit is contained in:
parent
91e14bee00
commit
5c76c11bb2
1 changed files with 10 additions and 0 deletions
|
@ -64,4 +64,14 @@ function teardown_file() {
|
|||
[ $(echo "${lines[-1]}" | jq '.tags[]') = '"1.20"' ]
|
||||
run ${ZLI_PATH} cve ${REGISTRY_NAME} -I golang:1.20
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
found=0
|
||||
for i in "${lines[@]}"
|
||||
do
|
||||
|
||||
if [[ "$i" = *"CVE-2021-29921 CRITICAL python-ipaddress: Improper input validation o..."* ]]; then
|
||||
found=1
|
||||
fi
|
||||
done
|
||||
[ "$found" -eq 1 ]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue