Skip to content

fix(ci): provide subject-name for service image build provenance attestation in release.yml #1192

Closed

Description

@dan-petty

Problem Description

During the release workflow (.github/workflows/release.yml) run for v0.2.26 (run 37230134795, job service-image), the Attest Build Provenance step failed with:
Error: subject-name must be provided when using subject-digest.

Root Cause

actions/attest-build-provenance@v2 requires subject-name when subject-digest is provided. The step in release.yml provided subject-digest: ${{ steps.push.outputs.digest }} but was missing subject-name: ghcr.io/${{ github.repository }}/service.

Proposed Solution

  1. Add subject-name: ghcr.io/${{ github.repository }}/service to the Attest Build Provenance step in .github/workflows/release.yml.
  2. Add a workflow contract test in tests/test_workflow_contracts.py ensuring that actions/attest-build-provenance steps in workflows provide both subject-digest and subject-name.
  3. Add changelog fragment and task tracking doc.

Activity

  1. added this to the v0.2.27 milestone on Oct 5, 2026
  2. added
    type/bug
    priority/p1-high
    scope/ci
    on Oct 5, 2026
  3. dan-petty-bot commented on Oct 5, 2026

    @dan-petty-bot
    Collaborator

    What changed

    #1193, merged into release/v0.2.27 as 70174b0.

    Description

    During the release workflow (.github/workflows/release.yml) run for v0.2.26 (run 37230134795, job service-image), the Attest Build Provenance step failed with:
    Error: subject-name must be provided when using subject-digest.

    actions/attest-build-provenance@v2 requires subject-name when subject-digest is provided. The step in release.yml provided subject-digest: ${{ steps.push.outputs.digest }} but lacked subject-name.

    4 file(s) changed.

    How it was verified

    Check runs at 57024dd:

    • Prune PR DevContainer Images: pass
    • CodeQL: pass
    • Dependency Freshness: skipping
    • Static Analysis: pass
    • Analyze (actions): pass
    • Analyze (python): pass
    • Tests & Coverage: pass
    • DevContainer Image: skipping
    • Service Image: skipping

    Acceptance Criteria of docs/agent/tasks/task-1192-service-image-provenance-subject-name.md:

    • subject-name: ghcr.io/${{ github.repository }}/service is added to Attest Build Provenance in .github/workflows/release.yml.
    • uv run actionlint .github/workflows/release.yml passes with 0 errors.
    • Contract tests in tests/test_workflow_contracts.py verify that actions/attest-build-provenance steps require both subject-name and subject-digest.
    • Mutation tests verify that removing subject-name causes the workflow contract check to fail.
    • uv run devops ci passes with 100% green status across all quality gates.
    • Changelog fragment changelog.d/1192.md is present.
    • Pending a person: Next release run of release.yml executes Attest Build Provenance in service-image job without subject-name failure.
  4. added a commit that references this issue on Oct 6, 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/p1-highscope/citype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions