@@ -377,6 +377,14 @@ func TestSourceToInputWithLogger(t *testing.T) {
377377 "input.image.workingDir" ,
378378 "input.image.env" ,
379379 },
380+ assert : func (t * testing.T , inp Input , unknowns []string , err error ) {
381+ t .Helper ()
382+ require .NoError (t , err )
383+ require .NotNil (t , inp .Image )
384+ require .False (t , inp .Image .HasProvenance )
385+ require .NotContains (t , unknowns , "input.image.hasProvenance" )
386+ require .NotContains (t , unknowns , "input.image.signatures" )
387+ },
380388 },
381389 {
382390 name : "image-source-with-config-and-no-attestation-chain" ,
@@ -671,6 +679,28 @@ func TestSourceToInputWithLogger(t *testing.T) {
671679 },
672680 expUnk : []string {"input.git.commit" , "input.git.tag" },
673681 },
682+ {
683+ name : "git-meta-sha256-checksum-sets-is-sha256" ,
684+ src : & gwpb.ResolveSourceMetaResponse {
685+ Source : & pb.SourceOp {
686+ Identifier : "git://github.com/docker/buildx.git" ,
687+ },
688+ Git : & gwpb.ResolveSourceGitResponse {
689+ Checksum : "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ,
690+ },
691+ },
692+ expInput : Input {
693+ Git : & Git {
694+ Schema : "https" ,
695+ Host : "github.com" ,
696+ Remote : "https://github.com/docker/buildx.git" ,
697+ Checksum : "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ,
698+ CommitChecksum : "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ,
699+ IsSHA256 : true ,
700+ },
701+ },
702+ expUnk : []string {"input.git.commit" , "input.git.tag" },
703+ },
674704 {
675705 name : "git-meta-checksum-ne-commit-checksum-sets-annotated-tag" ,
676706 src : & gwpb.ResolveSourceMetaResponse {
0 commit comments