Skip to content

Commit 1a84ed9

Browse files
peppescgclaude
andcommitted
fix(ci): fix chart name extraction for cosign signing
Use helm show chart to extract the actual chart name instead of parsing the filename, which fails when version contains dashes. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1cabc31 commit 1a84ed9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/releaser-helm-chart.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ jobs:
9090
echo "Pushing ${chart} to OCI registry..."
9191
helm push "${chart}" oci://${{ env.REGISTRY_PATH }} 2>&1 | tee helm-push-output.log
9292
93-
# Extract chart name and digest for signing
94-
file_name="${chart##*/}"
95-
chart_name="${file_name%-*}"
93+
# Extract chart name from the packaged chart and digest for signing
94+
chart_name=$(helm show chart "${chart}" | grep '^name:' | awk '{print $2}')
9695
digest=$(grep -oP 'Digest: \K\S+' helm-push-output.log)
9796
9897
if [[ -z "$digest" ]]; then

0 commit comments

Comments
 (0)