Skip to content

Commit 95d6dc8

Browse files
committed
compliance/tests: drop Comment check from valid_image rego rule
The moby/moby v29 SDK (introduced in #48777) changed image.InspectResponse.Comment from a plain string field to `json:",omitempty"`. Images built without an explicit comment (e.g. ubuntu:24.04) now omit the key from JSON, causing has_key to return false. This was hidden from the CI because the test skips when it can't connect to the docker socket, which will happen in our CI env
1 parent a3a78ee commit 95d6dc8

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

pkg/compliance/tests/docker_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ valid_image(i) {
136136
has_key(i, "id")
137137
has_key(i, "inspect")
138138
has_key(i.inspect, "Architecture")
139-
has_key(i.inspect, "Comment")
140139
has_key(i.inspect, "Config")
141140
}
142141

0 commit comments

Comments
 (0)