Skip to content

Commit

Permalink
fix: skip checksum verify if no checksum found
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Sep 2, 2024
1 parent a574fe4 commit e48b930
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/source/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@ func (s *Source) verifySignature() error {

func (s *Source) verifyChecksum() error {
if v, ok := s.Options.Settings["no-checksum-verify"]; ok && v.(bool) {
logrus.Warn("skipping checksum verification")
log.Warn("skipping checksum verification")
return nil
}

if s.Checksum == nil {
log.Warn("skipping checksum verification (no checksum)")
return nil
}

Expand Down

0 comments on commit e48b930

Please sign in to comment.