Skip to content
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

Enhancements in Output Control Options for Scan Results Writer #1047

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

attiasas
Copy link
Contributor

@attiasas attiasas commented Nov 23, 2023

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

The existing behavior remains unchanged; it merely introduces additional options to manage the output of the writer:

  • writeFullScanResults: An option to regulate whether the complete scan results should be written as a file.
  • includeSecrets: An option to manage whether the output should include the results of the secrets scan.

@attiasas attiasas added the improvement Automatically generated release notes label Nov 23, 2023
@attiasas attiasas requested a review from omerzi November 26, 2023 14:53
@attiasas attiasas marked this pull request as ready for review November 26, 2023 14:53
@eyalbe4 eyalbe4 changed the title Add new options to control resultWriter New options to control the resultWriter Nov 27, 2023
@attiasas attiasas changed the title New options to control the resultWriter Enhancements in Output Control Options for Scan Results Writer Nov 28, 2023
Copy link
Contributor

👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.


@attiasas attiasas merged commit a5df3a0 into jfrog:dev Nov 28, 2023
8 checks passed
// The scanType (binary,dependency)
scanType services.ScanType
// Messages - Option array of messages, to be displayed if the format is Table
messages []string
}

func NewResultsWriter(scanResults *Results) *ResultsWriter {
return &ResultsWriter{results: scanResults}
return &ResultsWriter{results: scanResults, includeSecrets: true, writeFullScanResults: true}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the includeSecrets be false by default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants