Skip to content

Commit

Permalink
adding gitoid false to use
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD committed Jan 29, 2024
1 parent ee8e912 commit 8d23837
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func runRun(ctx context.Context, ro options.RunOptions, args []string, signers .
if err != nil {
return fmt.Errorf("failed to parse hash: %w", err)
}
roHashes = append(roHashes, cryptoutil.DigestValue{Hash: hash})
roHashes = append(roHashes, cryptoutil.DigestValue{Hash: hash, GitOID: false})
}

defer out.Close()
Expand Down
2 changes: 1 addition & 1 deletion cmd/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func runVerify(ctx context.Context, vo options.VerifyOptions) error {

subjects := []cryptoutil.DigestSet{}
if len(vo.ArtifactFilePath) > 0 {
artifactDigestSet, err := cryptoutil.CalculateDigestSetFromFile(vo.ArtifactFilePath, []cryptoutil.DigestValue{{Hash: crypto.SHA256}})
artifactDigestSet, err := cryptoutil.CalculateDigestSetFromFile(vo.ArtifactFilePath, []cryptoutil.DigestValue{{Hash: crypto.SHA256, GitOID: false}})

Check failure on line 92 in cmd/verify.go

View workflow job for this annotation

GitHub Actions / unit-test / witness

cannot use []cryptoutil.DigestValue{…} (value of type []"github.com/in-toto/go-witness/cryptoutil".DigestValue) as []"crypto".Hash value in argument to cryptoutil.CalculateDigestSetFromFile

Check failure on line 92 in cmd/verify.go

View workflow job for this annotation

GitHub Actions / sast / witness

cannot use []cryptoutil.DigestValue{…} (value of type []"github.com/in-toto/go-witness/cryptoutil".DigestValue) as []"crypto".Hash value in argument to cryptoutil.CalculateDigestSetFromFile
if err != nil {
return fmt.Errorf("failed to calculate artifact digest: %w", err)
}
Expand Down

0 comments on commit 8d23837

Please sign in to comment.