Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support multi-subject attestations #164

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

bdehamer
Copy link
Collaborator

@bdehamer bdehamer commented Nov 1, 2024

When attesting multiple subjects at the same time, a single attestation will be created with references to each of the supplied subjects. This replaces the previous behavior which resulted in a separate attestation for each subject.

Also lowers the limit on the number of subjects which can be attested at a time from 2500 to 1024. Attesting more than 1024 subjects will require additional invocations of the action.

@bdehamer bdehamer requested a review from a team as a code owner November 1, 2024 20:42

if (opts.pushToRegistry) {
if (subjects.length === 1 && opts.pushToRegistry) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means that we don't push multi subject attestations to an OCI registry, right? If so then it should be part of the updated readme I think.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's really no change in behavior here. Currently, the only way to identify multiple subjects when calling the action is through a file glob. When identifying an image by name & digest you are limited to a single subject.

There have been a number of requests to support the attestation of multiple images at the same time, but we haven't yet tackled this work.

@bdehamer bdehamer merged commit 85e94cb into main Nov 5, 2024
20 checks passed
@bdehamer bdehamer deleted the bdehamer/multi-subject branch November 5, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants