Skip to content

Commit

Permalink
attestations: propogate metadata through unbundling
Browse files Browse the repository at this point in the history
This isn't anywhere at the moment, but we should be consistent here to
help avoid any future logic issues.

Signed-off-by: Justin Chadwell <[email protected]>
  • Loading branch information
jedevc committed Dec 16, 2022
1 parent e9b167c commit 3959dc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporter/attestation/unbundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func unbundle(ctx context.Context, root string, bundle exporter.Attestation) ([]
}
unbundled = append(unbundled, exporter.Attestation{
Kind: gatewaypb.AttestationKindInToto,
Metadata: bundle.Metadata,
Path: path.Join(bundle.Path, entry.Name()),
ContentFunc: func() ([]byte, error) { return predicate, nil },
InToto: result.InTotoAttestation{
Expand Down

0 comments on commit 3959dc4

Please sign in to comment.