mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
fix(ci): trivy test to expect 3 CVEs instead of 2 in the vulnerable test layer (#1623)
Trivy started detecting CVE-2023-2975, so one of the checks expecting only 2 CVEs was failing Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
+2
-1
@@ -639,10 +639,11 @@ func GetRandomImageComponents(layerSize int) (ispec.Image, [][]byte, ispec.Manif
|
||||
return config, layers, manifest, nil
|
||||
}
|
||||
|
||||
// These are the 2 vulnerabilities found for the returned image by the GetVulnImage function.
|
||||
// These are the 3 vulnerabilities found for the returned image by the GetVulnImage function.
|
||||
const (
|
||||
Vulnerability1ID = "CVE-2023-2650"
|
||||
Vulnerability2ID = "CVE-2023-1255"
|
||||
Vulnerability3ID = "CVE-2023-2975"
|
||||
)
|
||||
|
||||
func GetVulnImage(ref string) (Image, error) {
|
||||
|
||||
Reference in New Issue
Block a user