You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-09-16 09:26:22 +02:00
changing trust store permission (#3709)
Co-authored-by: anilkeshav27 <you@example.com>
This commit is contained in:
@@ -194,6 +194,10 @@ func loadRemoteRepoCertificates(certificateList []string, client piperhttp.Downl
|
||||
return errors.Wrap(err, "Could not copy existing cacerts into new cacerts location ")
|
||||
}
|
||||
|
||||
if err := fileUtils.Chmod(trustStore, 0644); err != nil {
|
||||
return errors.Wrap(err, "unable to provide correct permission to trust store")
|
||||
}
|
||||
|
||||
log.Entry().Infof("using trust store %s", trustStore)
|
||||
|
||||
if exists, _ := fileUtils.FileExists(trustStore); exists {
|
||||
|
Reference in New Issue
Block a user