1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-30 05:59:39 +02:00

disable trust engine lookup on missing token (#5196)

This commit is contained in:
Googlom 2024-12-02 17:38:53 +05:00 committed by GitHub
parent 6d22b09ab3
commit 53838c0ecc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,7 @@ func (c *Config) setTrustEngineConfiguration(hookConfig map[string]interface{})
} }
if len(c.trustEngineConfiguration.Token) == 0 { if len(c.trustEngineConfiguration.Token) == 0 {
log.Entry().Debug("no Trust Engine token found") return errors.New("no Trust Engine token found and envvar is empty")
} }
return nil return nil
} }