Skip to content

Release: verify chart artifact before signing #295

Closed

Description

@uniqueg

Problem

In .github/workflows/release.yml, the publish job downloads the workflow artifact named chart and attests, signs and releases whatever it contains (dist/*.tgz). Any job of the same run can replace that artifact with the run's token between prepare and publish, so the attested and signed chart need not be the one prepare packaged and checked.

Found in the review of the same workflow in trs-filer (elixir-cloud-aai/trs-filer#180).

Proposed fix

As in trs-filer:

  • prepare outputs the packaged chart's file name and SHA-256.
  • publish checks, right after downloading the artifact and before attesting or signing it, that dist/ holds exactly one file, with the expected name and checksum.
  • prepare uploads the chart with overwrite: true, so that re-running all jobs replaces the chart of the earlier attempt instead of failing on the existing artifact name.
  • Tests in tests/test_workflows.py pin the check and its order before attestation, signing and release.

The image needs no such change: publish gets its digest as a job output of push (not an artifact) and checks its format.

Activity

  1. added this to the v1.0.0-rc1 milestone on Oct 31, 2026
  2. added
    priority: high
    status: in progress
    type: ci / cd
    type: security
    on Oct 31, 2026
  3. removed
    status: in progress
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: ci / cdtype: security

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions