Skip to content

Commit 752d38a

Browse files
committed
update policies quickstart
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 2183174 commit 752d38a

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

docs/examples/policies/quickstart/README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,26 @@ chainloop policy develop eval --policy cdx-fresh.yaml --material cdx-fresh.json
4949

5050
**Old SBOM (should fail):**
5151
```
52-
INF - cdx-fresh: SBOM created at: 2024-06-15T10:30:00Z which is too old (freshness limit set to 30 days)
53-
INF policy evaluation failed
52+
[
53+
{
54+
"violations": [
55+
"SBOM created at: 2024-06-15T10:30:00Z which is too old (freshness limit set to 30 days)"
56+
],
57+
"skip_reasons": [],
58+
"skipped": false
59+
}
60+
]
5461
```
5562

5663
**Fresh SBOM (should pass):**
5764
```
58-
INF policy evaluation passed
65+
[
66+
{
67+
"violations": [],
68+
"skip_reasons": [],
69+
"skipped": false
70+
}
71+
]
5972
```
6073

6174
## Create Your Own Policy
@@ -68,7 +81,7 @@ Create a new policy with the embedded format (single YAML file):
6881
chainloop policy develop init --embedded --name my-policy --description "My custom policy description"
6982
```
7083

71-
**Note**: This creates a file named `my-policy.yaml` (based on the `--name` parameter). Without `--embedded`, it creates separate `chainloop-policy.yaml` and `chainloop-policy.rego` files.
84+
**Note**: This creates a file named `my-policy.yaml` (based on the `--name` parameter). Without `--embedded` and `--name`, it creates separate `policy.yaml` and `policy.rego` files.
7285

7386
### Step 2: Write Your Policy Rules
7487

0 commit comments

Comments
 (0)