Skip to content

chore(ci): attest the image with actions/attest #22

Closed

Description

@dan-petty

Problem

The publish job attests the manifest list with actions/attest-build-provenance v4.2.2. Since v4, that action is a wrapper on actions/attest, and its README says that new implementations should use actions/attest (read 2026-11-20). The GitHub guide "Publishing Docker images" uses actions/attest. Renovate updates the version of an action, but not its name.

Change

The publish job uses actions/attest, pinned to a commit, with the same subject name, subject digest and push to the registry.

Proof

gh attestation verify oci://ghcr.io/dan-petty/devtools:latest --owner dan-petty passes on the next published image.

Alternatives check of 2026-11-20: not-applicable.
Class: chore, no search.
Tool: none found.

Proposed design

Problem statement

The publish job attests the manifest list with actions/attest-build-provenance v4.2.2. Since v4, that action is a wrapper on actions/attest, and its README says that new implementations should use actions/attest. Renovate updates the version of an action, but not its name, so the wrapper stays until the workflow names actions/attest directly. The change updates the publish job to use actions/attest, pinned to a commit, with the same subject name, subject digest and registry push.

Acceptance criteria

Requirement: Publish workflow lint

The publish workflow SHALL pass actionlint and zizmor after the attest step changes to actions/attest.

Scenario: Lint the publish workflow

  • WHEN I run uv run devops ci --check --only actionlint,zizmor
  • THEN The command exits 0 and reports no error.

Requirement: Image attestation verifies

The publish job SHALL attest the manifest list with actions/attest, pinned to a full commit SHA, and keep the same subject name, subject digest and registry push.

Scenario: Verify the next published image

  • WHEN I run gh attestation verify oci://ghcr.io/dan-petty/devtools:latest --owner dan-petty after the next image publishes
  • THEN The command exits 0 and reports the attestation.

Existing Tool Considered

No alternatives check has run (the body records not-applicable, no search). The open, maintained actions/attest action covers the need to attest the manifest list: it takes the same subject-name, subject-digest and push-to-registry inputs as the wrapper, so it lacks nothing this change needs. The change builds no code, so it has no build cost.

Key questions

  • Which action attests the manifest list?: Use actions/attest, pinned to a full commit SHA, with subject-name: ${{ env.IMAGE }}, subject-digest: ${{ steps.index.outputs.digest }} and push-to-registry: true, and keep the existing id-token: write, attestations: write and packages: write permissions. (best practice) [sources: .github/workflows/image.yml:427, .github/workflows/image.yml:429, .github/workflows/image.yml:431]
    • Chosen: actions/attest. The direct action. It takes the same subject-name, subject-digest and push-to-registry inputs as the wrapper, so the step keeps its behavior, and the wrapper README directs new implementations to it.
    • Rejected: actions/attest-build-provenance. A wrapper on actions/attest since v4. It stays on the wrapper path, and Renovate updates only its version, never its name.
    • Rejected: Keep the wrapper and wait for a Renovate rename. Renovate's github-actions manager does not rename an action, so the job would stay on the wrapper indefinitely.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/chore
    status/new
    value/low
    effort/low
    source/agent
    scope/ci
    on Nov 20, 2026
  2. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 20, 2026
  4. removed
    status/in-review
    on Nov 20, 2026
  5. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

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

    effort/lowpriority/p2-mediumscope/cisource/agenttype/chorevalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions