From e48b930e2744377fae1aeff70e491a2b782fc47d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 2 Sep 2024 12:45:19 -0600 Subject: [PATCH] fix: skip checksum verify if no checksum found --- pkg/source/source.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/source/source.go b/pkg/source/source.go index 4a47fbd..f224973 100644 --- a/pkg/source/source.go +++ b/pkg/source/source.go @@ -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 }