-
Notifications
You must be signed in to change notification settings - Fork 26
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
AST-37225 support containers in result show command #683
Conversation
Policy Management Violations
No New Or Fixed Issues Found |
… feature/containers-results
internal/commands/result.go
Outdated
@@ -199,6 +208,7 @@ func resultShowSubCommand( | |||
printer.FormatPDF, | |||
printer.FormatSummaryMarkdown, | |||
printer.FormatGL, | |||
// printer.FormatSonar ?? |
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.
what is this comment?
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.
we support also this format, I don't know why it is not on the list already
internal/commands/result_test.go
Outdated
err = json.Unmarshal(bytes, &scanResultsCollection) | ||
assert.NilError(t, err, "Error unmarshalling JSON data") | ||
for _, scanResult := range scanResultsCollection.Results { | ||
if !hasContainersPresent && scanResult.Type == params.ContainersType { |
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.
hasContainersPresent == isContainerEnabled? if so change the name, it's not clear..
test/integration/scan_test.go
Outdated
@@ -463,7 +463,7 @@ func executeScanAssertions(t *testing.T, projectID, scanID string, tags map[stri | |||
} | |||
|
|||
func createScan(t *testing.T, source string, tags map[string]string) (string, string) { | |||
return executeCreateScan(t, getCreateArgs(source, tags, "sast , sca , iac-security , api-security ")) | |||
return executeCreateScan(t, getCreateArgs(source, tags, "sast , sca , iac-security , api-security ")) |
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.
we want to add container here. BTW, there is a white space in api-secuirty. we shouldn't have (unless we want to check how we are handling this)
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.
maybe I will add the containers here after checking the FF
because if we add it always, it will appear in the result report with 0 results
what do you say?
Description
References
Testing
Checklist