Skip to content

Support for multiple images with push-to-registry #477

Description

@smlx

My release workflow uses GoReleaser to build multiple images, push them to a registry, and then attest them using a config like this:

    # attest images
    - uses: actions/attest@508db95dd578ae2727ebd6217d5ba78e4fbda05d # v4.2.1
      with:
        subject-checksums: ./dist/digests.txt
        push-to-registry: true

Recently since I bumped the version of the attest action I see an error message:

Error: Error: push-to-registry requires exactly one subject but 4 subjects were resolved

This seems to be a result of #447.

Is this behaviour intentional? Can this action be updated to support pushing attestations for multiple images?

I believe this is expected to work based on the GoReleaser docs which mention this action.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions