You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The release workflow's publish job downloads the chart artifact and attests and signs whatever matches dist/*.tgz. Any job of the run can overwrite artifacts with the run's token, so publish must check that the artifact is exactly the chart that prepare packaged before anything is attested, signed or released.
prepare outputs the chart's file name and SHA-256 (chart_file, chart_sha256);
publish downloads the chart first and checks it (expected name and checksum formats, exactly one file in dist/, hidden files included via shopt -s nullglob dotglob, sha256sum --check --strict) before the image or the chart is attested or signed;
the chart is attested and signed by its exact file name, not by dist/*.tgz; the upload keeps overwrite: true so that full re-runs work;
tests in tests/test_workflows.py pin the outputs, overwrite: true, the exact attest/sign subjects and the step order, and run the check script for good, wrong hash, extra file, hidden file, renamed, empty and bad outputs;
the workflow header comment and docs/development.md describe the check.
Activity