Skip to content

vendor: update github.com/in-toto/in-toto-golang v0.10.0#6533

Merged
tonistiigi merged 2 commits intomoby:masterfrom
crazy-max:update-intoto-golang
Feb 24, 2026
Merged

vendor: update github.com/in-toto/in-toto-golang v0.10.0#6533
tonistiigi merged 2 commits intomoby:masterfrom
crazy-max:update-intoto-golang

Conversation

@crazy-max
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@github-actions github-actions bot added the area/dependencies Pull requests that update a dependency file label Feb 24, 2026
Comment on lines +16 to 21
// Deprecated: ProvenancePredicate exists for historical compatibility
// and should not be used. This implementation has been superseded by the
// Provenance struct generated from the Protobuf definition provided
// by the in-toto Attestation Framework.
// https://github.com/in-toto/attestation/tree/main/protos/in_toto_attestation/predicates/provenance/v1.
type ProvenancePredicate struct {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@tonistiigi Looks like they deprecated provenance v1 structs in favor of protos: in-toto/in-toto-golang#267

We could switch to https://github.com/in-toto/attestation that is proto first:

Would need some protojson marshal/unmarshal hop and convert the predicate proto to structpb.Struct to embed in the Statement afaik.

Or we could generate predicate structs from json schemas and drop github.com/in-toto/in-toto-golang for provenance?

WDYT?

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max marked this pull request as ready for review February 24, 2026 16:20
// format is defined by builder.id; by default it is treated as opaque and
// case-sensitive. The value SHOULD be globally unique.
InvocationID string `json:"invocationID,omitempty"`
InvocationID string `json:"invocationId,omitempty"`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note to readers that this is a breaking change if your parser is case sensitive (json.Unmarshal is not). No way around it though as this is how it is in the spec.

@crazy-max crazy-max added this to the v0.28.0 milestone Feb 24, 2026
@tonistiigi tonistiigi merged commit c5cee9e into moby:master Feb 24, 2026
222 of 223 checks passed
@crazy-max crazy-max deleted the update-intoto-golang branch February 25, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dependencies Pull requests that update a dependency file needs/follow-up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants