Skip to content

Commit

Permalink
validate xray url before running jas scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
hadarshjfrog committed Sep 5, 2024
1 parent 64585a6 commit e60da42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jas/runner/jasrunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
func AddJasScannersTasks(securityParallelRunner *utils.SecurityParallelRunner, scanResults *utils.Results, directDependencies *[]string,
serverDetails *config.ServerDetails, thirdPartyApplicabilityScan bool, scanner *jas.JasScanner, scanType applicability.ApplicabilityScanType,
secretsScanType secrets.SecretsScanType, errHandlerFunc func(error), scansToPreform []utils.SubScanType, configProfile *services.ConfigProfile) (err error) {
if serverDetails == nil || len(serverDetails.Url) == 0 {
if serverDetails == nil || len(serverDetails.XrayUrl) == 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.")
return
}
Expand Down

0 comments on commit e60da42

Please sign in to comment.