mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
feat(image): return error early if total size of layers exceeds limit (#8294)
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io> Signed-off-by: knqyf263 <knqyf263@gmail.com> Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -206,7 +206,7 @@ func TestDockerEngine(t *testing.T) {
|
||||
name: "sad path, image size is larger than the maximum",
|
||||
input: "testdata/fixtures/images/alpine-39.tar.gz",
|
||||
maxImageSize: "3mb",
|
||||
wantErr: "uncompressed image size 5.8MB exceeds maximum allowed size 3MB",
|
||||
wantErr: "uncompressed layers size 5.8MB exceeds maximum allowed size 3MB",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user