forked from chainloop-dev/chainloop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): Update quickstart on documentation to include policies (c…
…hainloop-dev#1866) Signed-off-by: Javier Rodriguez <[email protected]>
- Loading branch information
Showing
4 changed files
with
96 additions
and
10 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
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,29 @@ | ||
# This is an example contract that expects all containers to have a valid SBOM | ||
# and all artifacts to be signed. It also checks that the vulnerabilities | ||
# reports do not contain any vulnerabilities with severity higher than MEDIUM | ||
schemaVersion: v1 | ||
materials: | ||
- name: container | ||
type: CONTAINER_IMAGE | ||
- name: sbom | ||
type: SBOM_CYCLONEDX_JSON | ||
optional: true | ||
- name: vulnerabilities-report | ||
type: SARIF | ||
optional: true | ||
policies: | ||
attestation: | ||
# Container with sbom checks that all containers added to the attestation | ||
# have a valid SBOM also present in the attestation | ||
- ref: containers-with-sbom | ||
materials: | ||
# Artifact signed checks that all artifacts such as Container Images and Charts are signed | ||
- ref: artifact-signed | ||
# Vulnerabilities checks the vulnerabilities reports if present in the attestation | ||
# does not contain any vulnerabilities with severity higher than the specified | ||
- ref: vulnerabilities | ||
with: | ||
severity: "MEDIUM" | ||
policyGroups: | ||
# This policy group applies a number of SBOM-related policies | ||
- ref: sbom-quality |
Large diffs are not rendered by default.
Oops, something went wrong.
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,16 @@ | ||
{ | ||
"version": "2.1.0", | ||
"$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"driver": { | ||
"name": "grype", | ||
"version": "0.87.0", | ||
"informationUri": "https://github.com/anchore/grype" | ||
} | ||
}, | ||
"results": [] | ||
} | ||
] | ||
} |