mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
* 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
16 lines
258 B
Rego
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 = [""]
|
|
}
|