Skip to content

fix: cosign Helm chart signing — add GHCR auth and sign by digest#37

Merged
miguelgila merged 1 commit intomainfrom
fix/helm-cosign-auth
Mar 16, 2026
Merged

fix: cosign Helm chart signing — add GHCR auth and sign by digest#37
miguelgila merged 1 commit intomainfrom
fix/helm-cosign-auth

Conversation

@miguelgila
Copy link
Owner

Summary

  • Add docker/login-action@v3 to helm-chart job so cosign has GHCR push credentials (previously only Helm's credential store was configured)
  • Capture digest from helm push output and sign by digest instead of tag (tag signing is deprecated by cosign)

Fixes #36

Test plan

  • Trigger a release (or workflow_dispatch) and verify the helm-chart job's cosign step succeeds
  • Verify the signed chart can be verified with cosign verify

🤖 Generated with Claude Code

Cosign in the helm-chart job failed because it uses Docker/OCI
credentials (~/.docker/config.json) which were never set up — only
Helm's credential store was configured. Add docker/login-action@v3
to provide GHCR push credentials to cosign.

Also switch from signing by tag (deprecated) to signing by digest,
matching the pattern used in the container-images job.

Fixes #36

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.04%. Comparing base (607befd) to head (0132567).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
+ Coverage   84.66%   85.04%   +0.38%     
==========================================
  Files           6        6              
  Lines         300      301       +1     
==========================================
+ Hits          254      256       +2     
+ Misses         46       45       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@miguelgila miguelgila merged commit 9477f12 into main Mar 16, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release: cosign fails to sign Helm chart — GHCR auth not available to cosign

1 participant