Skip to content

Commit d6829b5

Browse files
authored
docs: update examples (#2089)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent cb66d64 commit d6829b5

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

docs/examples/policies/chainloop-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ metadata:
1818
name: chainloop-commit
1919
spec:
2020
policies:
21-
- type: ATTESTATION
21+
- kind: ATTESTATION
2222
embedded: |
2323
package main
2424

docs/examples/policies/chainloop-qa.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 The Chainloop Authors.
1+
# Copyright 2024-2025 The Chainloop Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ metadata:
2121
name: sarif-errors
2222
spec:
2323
policies:
24-
- type: ATTESTATION
24+
- kind: ATTESTATION
2525
embedded: |
2626
package main
2727

docs/examples/policies/sarif-errors.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 The Chainloop Authors.
1+
# Copyright 2024-2025 The Chainloop Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ metadata:
1919
name: sarif-errors
2020
spec:
2121
policies:
22-
- type: SARIF
22+
- kind: SARIF
2323
embedded: |
2424
package main
2525
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
schemaVersion: v1
2+
materials:
3+
- name: container
4+
type: CONTAINER_IMAGE
5+
- name: sbom
6+
type: SBOM_CYCLONEDX_JSON
7+
- name: vulnerabilities-report
8+
type: SARIF
9+
10+
# We can attach policies from the provided library of policies https://app.chainloop.dev/policies
11+
# or custom ones as explained here https://docs.chainloop.dev/concepts/policies
12+
policies:
13+
attestation:
14+
- ref: https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/policies/chainloop-commit.yaml
15+
- ref: https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/policies/sbom/sbom-present.yaml
16+
materials:
17+
- ref: https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/policies/sbom/cyclonedx-licenses.yaml
18+

docs/examples/quickstart/quickstart-contract-oss.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ materials:
1010
type: SARIF
1111
optional: true
1212

13+
policies:
14+
attestation:
15+
- ref: https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/policies/chainloop-commit.yaml
16+
- ref: https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/policies/sbom/sbom-present.yaml
17+
materials:
18+
- ref: https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/policies/sbom/cyclonedx-licenses.yaml
19+

0 commit comments

Comments
 (0)