-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AnchoreCTL Policies: Additional checks for severity in description (#…
…11269) * change severity and active * Include UNKNOWN option * status, not gate * And add unittest * newline
- Loading branch information
1 parent
1111ff6
commit 7dfc46c
Showing
3 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
unittests/scans/anchorectl_policies/one_violation_description_severity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[ | ||
{ | ||
"detail": [ | ||
{ | ||
"description": "CRITICAL User root found as effective user, which is not on the allowed list", | ||
"gate": "dockerfile", | ||
"imageId": "d26f0119b9634091a541b081dd8bdca435ab52e114e4b4328575c0bc2c69768b", | ||
"policyId": "RootUser", | ||
"status": "warn", | ||
"tag": "test/testimage:testtag", | ||
"triggerId": "b2605c2ddbdb02b8e2365c9248dada5a", | ||
"triggerName": "effective_user" | ||
} | ||
], | ||
"digest": "sha256:8htz0bf942cfcd6hg8cf6435afd318b65d23e4c1a80044304c6e3ed20", | ||
"finalAction": "stop", | ||
"finalActionReason": "policy_evaluation", | ||
"lastEvaluation": "2022-09-20T08:25:52Z", | ||
"policyId": "9e104ade-7b57-4cdc-93fb-4949bf3b36b6", | ||
"status": "fail", | ||
"tag": "test/testimage:testtag" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters