Skip to content

Commit

Permalink
PA-10549 Modify validations of required params (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
SOOS-JAlvarez committed Aug 24, 2023
1 parent 6677ca0 commit 4bbd6d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.29
1.0.30
13 changes: 6 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,13 +428,12 @@ def __make_soos_start_analysis_request__(self, command: str) -> DASTStartAnalysi
log(f"SOOS URL Endpoint: {api_url}")

# Validate required fields
if (
self.project_name is None
or len(self.project_name) == 0
or self.scan_mode is None
or len(self.scan_mode) == 0
):
log("projectName and scanMode are required", LogLevel.ERROR)
if self.project_name is None or len(self.project_name) == 0:
log("projectName is required", LogLevel.ERROR)
sys.exit(1)

if self.scan_mode is None or len(self.scan_mode) == 0:
log("scanMode is required", LogLevel.ERROR)
sys.exit(1)

# Obfuscate sensitive data
Expand Down

0 comments on commit 4bbd6d5

Please sign in to comment.