From b9d8fb565b05697951c2e489c46d441deca17217 Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Mon, 10 Jul 2023 14:30:29 +0200 Subject: [PATCH 1/2] fix(release): do not fail if we can not attest a material Signed-off-by: Miguel Martinez Trivino --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 72ee91eca..79b1f940e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -101,10 +101,11 @@ jobs: run: | # Binaries x86_64 # TODO: add the rest of binaries + # NOTE that we are not making the attestation fail if the material is not found. We will fail on "att push" echo -n '${{ steps.release.outputs.artifacts }}' | jq -r '.[] | select(.type=="Binary" and .goos=="linux" and .goarch=="amd64") | { "name": "\(.extra.ID)-\(.goos)-\(.goarch)", "path":"\(.path)"} | @base64' | while read i; do BINARY_NAME=$(echo "${i}" | base64 --decode | jq -r ${1} .name) BINARY_PATH=$(echo "${i}" | base64 --decode | jq -r ${1} .path) - chainloop attestation add --name ${BINARY_NAME} --value ${BINARY_PATH} + chainloop attestation add --name ${BINARY_NAME} --value ${BINARY_PATH} || true done - name: Finish and Record Attestation From fe309c4a9a6b88e4ffc88cb9244cd71e8eb33db6 Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Mon, 10 Jul 2023 14:33:53 +0200 Subject: [PATCH 2/2] feat: add plugin Signed-off-by: Miguel Martinez Trivino --- .github/workflows/contracts/releases.cue | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/contracts/releases.cue b/.github/workflows/contracts/releases.cue index b09af31f2..08be2582d 100644 --- a/.github/workflows/contracts/releases.cue +++ b/.github/workflows/contracts/releases.cue @@ -4,6 +4,7 @@ materials: [ {type: "ARTIFACT", name: "cli-linux-amd64", output: true}, {type: "ARTIFACT", name: "control-plane-linux-amd64", output: true}, {type: "ARTIFACT", name: "artifact-cas-linux-amd64", output: true}, + {type: "ARTIFACT", name: "chainloop-plugin-discord-webhook-linux-amd64"}, // Container images {type: "CONTAINER_IMAGE", name: "control-plane-image", output: true}, {type: "CONTAINER_IMAGE", name: "artifact-cas-image", output: true},