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
fix(protecodeExecuteScan): correct regex pattern for replacing spaces (#3941)
This commit is contained in:
@@ -129,7 +129,7 @@ func handleArtifactVersion(artifactVersion string) string {
|
||||
}
|
||||
|
||||
func getDockerImage(utils protecodeUtils, config *protecodeExecuteScanOptions, cachePath string) (string, string, error) {
|
||||
m := regexp.MustCompile(`[\\s@:/]`)
|
||||
m := regexp.MustCompile(`[\s@:/]`)
|
||||
|
||||
tarFileName := fmt.Sprintf("%s.tar", m.ReplaceAllString(config.ScanImage, "-"))
|
||||
tarFilePath, err := filepath.Abs(filepath.Join(cachePath, tarFileName))
|
||||
|
Reference in New Issue
Block a user