-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SCS Vulnerabilities in json report when Agent is VSCode/AST-CLI (AST-63907) #850
Conversation
Policy Management Violations
No New Or Fixed Issues Found |
Nice job! |
This reverts commit a23cd4f.
# Extract names of failed tests and save them in the failedTests file | ||
grep -E "^--- FAIL: " test_output.log | awk '{print $3}' > "$FAILED_TESTS_FILE" | ||
-tags integration \ | ||
-v \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like you mergred it incorrectly. this file doesn't need any changes
@@ -28,6 +28,14 @@ func GetExportPackage(exportWrapper wrappers.ExportWrapper, scanID string) (*wra | |||
payload := &wrappers.ExportRequestPayload{ | |||
ScanID: scanID, | |||
FileFormat: "ScanReportJson", | |||
ExportParameters: wrappers.ExportParameters{ | |||
HideDevAndTestDependencies: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incorrectly merge
@@ -26,5 +26,5 @@ type ScaTypeCollection struct { | |||
ID string `json:"id,omitempty"` | |||
Type string `json:"type,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in correctly mregre
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last merge fro master is not good, the PR overwrite all master last changes.
Must fix.
Other than this, looks great!
Support SCS Vulnerabilities in json report when Agent is VSCode/AST-CLI (AST-63907) #850
By submitting a PR to this repository, you agree to the terms within the Checkmarx Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
Added full support for SCS engine results when scanning from the CLI.
Added partial support (only Secret Detection results) when scanning is done from VS Code
No other case SCS results are supported
References
https://checkmarx.atlassian.net/browse/AST-63907
Testing
Adding unit tests to test the following scenarios:
Scan from CLI - expect to receive all SCS engine results.
Scan from VS Code - expect to get only Secret Detection results.
Scan from another engine - expect to get no results from the SCS engine.
Scan without results from SCS.
Scan with NULL results.
Checklist