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

handle attests correctly with provenance and sbom inputs #1086

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Mar 26, 2024

We don't detect usage of attests input and therefore setting attests: type=provenance,mode=max will result in a duplicated provenance as we already set it automatically and build will fail with:

ERROR: duplicate attestation field provenance

This will also set builder-id automatically if provenance is used in attests which was not the case before.

To keep everything consistent across our flags such as load and push, provenance and sbom inputs take precedence over ones set in attests

src/context.ts Outdated Show resolved Hide resolved
@crazy-max

This comment was marked as resolved.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the fix-attests-provenance-sbom branch from 92318fe to 96acf63 Compare April 2, 2024 08:54
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max marked this pull request as ready for review April 2, 2024 09:01
@crazy-max crazy-max merged commit c3b5701 into docker:master Apr 26, 2024
54 checks passed
@crazy-max crazy-max deleted the fix-attests-provenance-sbom branch April 26, 2024 09:06
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.

None yet

2 participants