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 }}
This repository was archived by the owner on Mar 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/reference/operator/contract.mdx
+22-9Lines changed: 22 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,17 +42,31 @@ A full example of a Workflow Contract looks like
42
42
|[`materials`](#material-schema)| no | List of [materials](#material-schema) to be added to the attestation |
43
43
|`envAllowList`| no | List of environment variables that will be resolved and injected in the attestation |
44
44
|[`runner`](#runner-context)| no | Specific runner type associated with this contract. If not set, this contract will be valid to be run `anywhere` but you'll miss out some of [its benefits](#runner-context)|
45
-
|`annotations`| no | Name/Value pairs of arbitrary annotations that will be added to the attestation. **If the value is not provided, it will be required during the attestation process.**|
45
+
|`annotations`| no | Name/Value pairs of arbitrary annotations that will be added to the attestation. **If the value is not provided, it will be required during the attestation process.**|
|`name`| yes || unique identifier of the artifact |
52
-
|`type`| yes || <ul><li>`STRING` values will be injected in the attestation verbatim</li><li>`ARTIFACT` kinds will get uploaded to your OCI registry via the the built-in Content Addressable Storage proxy (CAS) and then referenced by their **content digest**</li><li>`CONTAINER_IMAGE` kinds will get resolved and referenced by **repository digest**</li><li>`SBOM_CYCLONEDX_JSON` or `SBOM_SPDX_JSON` will store and attach the Software Bill Of Materials (SBOM) to the attestation.</li><li>`JUNIT_XML` will validate, store and attach the JUnit XML file to the attestation.</li></ul> |
53
-
|`output`| no |`false`| If set to `true` the artifact will get injected in the `subject` section of the [in-toto statement](https://github.com/slsa-framework/slsa/blob/main/docs/attestation-model.md#overview). |
54
-
|`optional`| no |`false`| if set to `true`, providing this artifact during attestation will be optional. This is **useful for soft rollouts of new requirements**|
55
-
|`annotations`| no || Name/Value pairs of arbitrary annotations that will be added to the attestation. **If the value is not provided, it will be required during the attestation process.**|
49
+
Chainloop supports the collection of the following pieces of evidence types:
|`name`| yes || unique identifier of the artifact |
66
+
|`type`| yes || <ul><li>`STRING` values will be injected in the attestation verbatim</li><li>`ARTIFACT` kinds will get uploaded to your OCI registry via the the built-in Content Addressable Storage proxy (CAS) and then referenced by their **content digest**</li><li>`CONTAINER_IMAGE` kinds will get resolved and referenced by **repository digest**</li><li>`SBOM_CYCLONEDX_JSON` or `SBOM_SPDX_JSON` will store and attach the Software Bill Of Materials (SBOM) to the attestation.</li><li>`JUNIT_XML` will validate, store and attach the JUnit XML file to the attestation.</li><li>`OPENVEX` or `CSAF_VEX` for vulnerability disclosures</li><li>`SARIF` for static analysis</li></ul> |
67
+
|`output`| no |`false`| If set to `true` the artifact will get injected in the `subject` section of the [in-toto statement](https://github.com/slsa-framework/slsa/blob/main/docs/attestation-model.md#overview). |
68
+
|`optional`| no |`false`| if set to `true`, providing this artifact during attestation will be optional. This is **useful for soft rollouts of new requirements**|
69
+
|`annotations`| no || Name/Value pairs of arbitrary annotations that will be added to the attestation. **If the value is not provided, it will be required during the attestation process.**|
56
70
57
71
## Runner Context
58
72
@@ -131,7 +145,6 @@ The following environment variables will be automatically added to the attestati
131
145
132
146
A link to the Azure Pipeline build will be recorded in the control plane too during initialization.
133
147
134
-
135
148
:::tip
136
149
Remember, if all the **env variables** that you need are not defined in the context, you can extend such list via the `envAllowList` option.
0 commit comments