Skip to content

Commit 296dacc

Browse files
committed
generate only provenance att
1 parent dd119a2 commit 296dacc

2 files changed

Lines changed: 16 additions & 19 deletions

File tree

.github/workflows/build-attest.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,6 @@ jobs:
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

policy/policy.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

0 commit comments

Comments
 (0)