From acd29866db7364849c5286ed257b3f5aa2db4e71 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Sun, 22 Sep 2024 14:19:56 +0300 Subject: [PATCH 1/2] improved warning log --- jas/runner/jasrunner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jas/runner/jasrunner.go b/jas/runner/jasrunner.go index 3d6e8091..cc16726c 100644 --- a/jas/runner/jasrunner.go +++ b/jas/runner/jasrunner.go @@ -24,7 +24,7 @@ func AddJasScannersTasks(securityParallelRunner *utils.SecurityParallelRunner, s serverDetails *config.ServerDetails, thirdPartyApplicabilityScan bool, scanner *jas.JasScanner, scanType applicability.ApplicabilityScanType, secretsScanType secrets.SecretsScanType, errHandlerFunc func(error), scansToPreform []utils.SubScanType, configProfile *services.ConfigProfile, scansOutputDir string) (err error) { if serverDetails == nil || len(serverDetails.Url) == 0 { - log.Warn("To include 'Advanced Security' scan as part of the audit output, please run the 'jf c add' command before running this command.") + log.Warn("To incorporate the ‘Advanced Security’ scan into the audit output:\n1) If using the ‘audit’ command via CLI, make sure to run ‘jf c add’ beforehand.\n2) When using Frogbot, ensure that JF_URL is correctly defined and provided in the CI.") return } // For docker scan we support only secrets and contextual scans. From 61b0e2e35354e1405f9bca1c245e48ea3bc6f4a9 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Sun, 22 Sep 2024 17:28:04 +0300 Subject: [PATCH 2/2] fixed warning message --- jas/runner/jasrunner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jas/runner/jasrunner.go b/jas/runner/jasrunner.go index cc16726c..87e209c1 100644 --- a/jas/runner/jasrunner.go +++ b/jas/runner/jasrunner.go @@ -24,7 +24,7 @@ func AddJasScannersTasks(securityParallelRunner *utils.SecurityParallelRunner, s serverDetails *config.ServerDetails, thirdPartyApplicabilityScan bool, scanner *jas.JasScanner, scanType applicability.ApplicabilityScanType, secretsScanType secrets.SecretsScanType, errHandlerFunc func(error), scansToPreform []utils.SubScanType, configProfile *services.ConfigProfile, scansOutputDir string) (err error) { if serverDetails == nil || len(serverDetails.Url) == 0 { - log.Warn("To incorporate the ‘Advanced Security’ scan into the audit output:\n1) If using the ‘audit’ command via CLI, make sure to run ‘jf c add’ beforehand.\n2) When using Frogbot, ensure that JF_URL is correctly defined and provided in the CI.") + log.Warn("To incorporate the ‘Advanced Security’ scans into the audit output make sure platform url is provided and valid (run 'jf c add' prior to 'jf audit' via CLI, or provide JF_URL via Frogbot)") return } // For docker scan we support only secrets and contextual scans.