1
0
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:
Anil Keshav
2022-04-06 16:06:04 +02:00
committed by GitHub
parent 93b0cf7a34
commit f8af3c154e

View File

@@ -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 {