Skip to content

Commit e3210bc

Browse files
authored
Merge branch 'main' into pr-tester-workflow
2 parents b008dd6 + 6faf697 commit e3210bc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/ospackage/debutils/verify.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ func VerifyPackagegz(relPath string, pkggzPath string, arch string, component st
129129
func VerifyRelease(relPath string, relSignPath string, pKeyPath string) (bool, error) {
130130
log := logger.Logger()
131131

132+
//ignore verification if trusted=yes
133+
if pKeyPath == "[trusted=yes]" {
134+
log.Infof("Repository marked (%s) as [trusted=yes], skipping Release file signature verification", relPath)
135+
return true, nil
136+
}
137+
132138
// Read the public key
133139
keyringBytes, err := os.ReadFile(pKeyPath)
134140
if err != nil {

0 commit comments

Comments
 (0)