Files
trivy/integration/testdata/fixtures/repo/rule-exception/policy/exception.rego
Teppei Fukuda d19c7d9f29 feat(repo): support local repositories (#4890)
* feat(repo): support local repositories

* fix tests

* test: fix client/server tests

* docs: update

* test: add fs tests

* test: do not update golden files if overridden

* docs: remove a comment about fs deprecation
2023-07-31 11:27:36 +00:00

16 lines
258 B
Rego

package builtin.dockerfile.DS002
exception[rules] {
instruction := input.stages[_][_]
instruction.Cmd == "label"
key := instruction.Value[i]
i % 2 == 0
key == "user.root"
value := instruction.Value[plus(i, 1)]
value == "\"allow\""
rules = [""]
}