File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 - name : Install Cosign
6666 uses : sigstore/cosign-installer@v3
6767
68- - name : Generate SBOM for container image
69- uses : anchore/sbom-action@v0
70- with :
71- image : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.push.outputs.digest }}
72- output-file : build-sample-sbom.spdx.json
73- artifact-name : " build-sample-sbom.spdx.json"
74-
75- - name : Sign container image with Cosign
76- run : |
77- cosign sign --yes \
78- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.push.outputs.digest }}
79-
80- - name : Attest SBOM with Cosign
81- run : |
82- cosign attest --yes \
83- --predicate build-sample-sbom.spdx.json \
84- --type spdx \
85- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.push.outputs.digest }}
86-
8768 - name : Generate SLSA provenance with GitHub action
8869 uses : actions/attest-build-provenance/predicate@v3
8970 id : provenance
Original file line number Diff line number Diff line change 1+ sources :
2+ - policy :
3+ - oci::quay.io/enterprise-contract/ec-release-policy:latest
4+
5+ config :
6+ include :
7+ - slsa_build_build_service.slsa_builder_id_found
8+ - slsa_build_build_service.allowed_builder_ids_provided
9+
10+ ruleData :
11+ disallowed_packages :
12+ - purl : " pkg:oci/critical-cve-package"
13+ format : " semver"
14+ max : " 1.30.0"
15+ allowed_builder_ids :
16+ - tbd
You can’t perform that action at this time.
0 commit comments