You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c7ac4ce
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/docker_scout_policy.yaml
+43-17Lines changed: 43 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
command: docker scout policy
2
2
short: |
3
-
Evaluate policies against an image and display the policy evaluation results (experimental)
3
+
Evaluate local Rego policies against an image and display the results (experimental)
4
4
long: |-
5
5
The `docker scout policy` command evaluates policies against an image.
6
6
The image analysis is uploaded to Docker Scout where policies get evaluated.
@@ -9,16 +9,11 @@ long: |-
9
9
usage: docker scout policy [IMAGE | REPO]
10
10
pname: docker scout
11
11
plink: docker_scout.yaml
12
+
cname:
13
+
- docker scout policy publish
14
+
clink:
15
+
- docker_scout_policy_publish.yaml
12
16
options:
13
-
- option: env
14
-
value_type: string
15
-
description: Name of the environment to compare to
16
-
deprecated: true
17
-
hidden: true
18
-
experimental: false
19
-
experimentalcli: false
20
-
kubernetes: false
21
-
swarm: false
22
17
- option: exit-code
23
18
shorthand: e
24
19
value_type: bool
@@ -61,26 +56,57 @@ options:
61
56
swarm: false
62
57
- option: platform
63
58
value_type: string
64
-
description: Platform of image to pull policy results from
59
+
description: Platform of image to evaluate policies against
65
60
deprecated: false
66
61
hidden: false
67
62
experimental: false
68
63
experimentalcli: false
69
64
kubernetes: false
70
65
swarm: false
71
-
- option: to-env
66
+
- option: policy-bundle
67
+
value_type: stringArray
68
+
default_value: '[]'
69
+
description: OCI reference of a policy bundle to evaluate (repeatable)
70
+
deprecated: false
71
+
hidden: false
72
+
experimental: false
73
+
experimentalcli: false
74
+
kubernetes: false
75
+
swarm: false
76
+
- option: policy-config
72
77
value_type: string
73
-
description: Name of the environment to compare to
78
+
description: |
79
+
Path or http(s) URL to a JSON file configuring policy enablement and inputs
74
80
deprecated: false
75
81
hidden: false
76
82
experimental: false
77
83
experimentalcli: false
78
84
kubernetes: false
79
85
swarm: false
80
-
- option: to-latest
81
-
value_type: bool
82
-
default_value: "false"
83
-
description: Latest image processed to compare to
86
+
- option: policy-dir
87
+
value_type: stringArray
88
+
default_value: '[]'
89
+
description: Path to a directory of local .rego policy files (repeatable)
90
+
deprecated: false
91
+
hidden: false
92
+
experimental: false
93
+
experimentalcli: false
94
+
kubernetes: false
95
+
swarm: false
96
+
- option: policy-file
97
+
value_type: stringArray
98
+
default_value: '[]'
99
+
description: Path or http(s) URL to a .rego policy file (repeatable)
100
+
deprecated: false
101
+
hidden: false
102
+
experimental: false
103
+
experimentalcli: false
104
+
kubernetes: false
105
+
swarm: false
106
+
- option: result-file
107
+
value_type: string
108
+
description: |
109
+
Write the full Rego evaluation result (pass, violations, query bindings and OPA metrics) of each evaluated policy to a JSON file (useful when iterating on local --policy-file policies)
Package local Rego policies into an OCI bundle and push it to a registry (experimental)
4
+
long: |-
5
+
The docker scout policy publish command packages Rego policies into an OCI policy bundle and pushes it to a registry. The published bundle can then be evaluated with docker scout policy --policy-bundle REFERENCE.
6
+
7
+
When no --policy-file or --policy-dir is given, the built-in default policy set is published. Authentication uses your existing registry credentials (run "docker login" first).
0 commit comments