From ce951ffc9b0ca0e0a62db20ec28acad51c2a731f Mon Sep 17 00:00:00 2001 From: Miguel Martinez Date: Tue, 7 Oct 2025 10:51:19 +0200 Subject: [PATCH] chore(ci): fix helm package Signed-off-by: Miguel Martinez --- .github/workflows/package_chart.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package_chart.yaml b/.github/workflows/package_chart.yaml index e0187076e..e1751751f 100644 --- a/.github/workflows/package_chart.yaml +++ b/.github/workflows/package_chart.yaml @@ -57,10 +57,6 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - name: Initialize Attestation - run: | - chainloop attestation init --workflow ${CHAINLOOP_WORKFLOW_NAME} --project ${CHAINLOOP_PROJECT} --debug - - name: Package Chart run: helm package deployment/chainloop/ @@ -69,6 +65,10 @@ jobs: export CONTAINER_CP=$(cat deployment/chainloop/Chart.yaml | yq -r .annotations.images | yq -r '.[] | select(.name == "control-plane") | .image') export CONTAINER_CAS=$(cat deployment/chainloop/Chart.yaml | yq -r .annotations.images | yq -r '.[] | select(.name == "artifact-cas") | .image') chart_version=$(cat deployment/chainloop/Chart.yaml | yq .version) + app_version=$(cat deployment/chainloop/Chart.yaml | yq .appVersion) + + # Force the version that's inside the Chart.yaml file + chainloop attestation init --workflow ${CHAINLOOP_WORKFLOW_NAME} --project ${CHAINLOOP_PROJECT} --version ${app_version} # Attest Control plane image chainloop attestation add --name control-plane-image --value "${CONTAINER_CP}"