Skip to content

Commit

Permalink
Merge pull request #981 from mercedes-benz/feature-980-Client-code-im…
Browse files Browse the repository at this point in the history
…provement

code optimized.
closes #980
  • Loading branch information
sven-dmlr authored Feb 8, 2022
2 parents 4c19e81 + c677584 commit 80e6023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ build/
*.bak
*.zip
sechub_report*.json
sechub_report*.html
sechub-false-positives*.json
#!sechub.json

Expand Down
4 changes: 2 additions & 2 deletions sechub-cli/src/mercedes-benz.com/sechub/cli/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ func downloadSechubReport(context *Context) {
os.Exit(ExitCodeFailed)
}

fileEnding := "." + context.config.reportFormat // e.g. .json, .html
fileName := "sechub_report_" + context.config.projectID + "_" + context.config.secHubJobUUID + fileEnding
// Example: sechub_report_myproject_cdde8927-2df4-461c-b775-2dec9497e8b1.json
fileName := "sechub_report_" + context.config.projectID + "_" + context.config.secHubJobUUID + "." + context.config.reportFormat

report := ReportDownload{serverResult: getSecHubJobReport(context), outputFolder: context.config.outputFolder, outputFileName: fileName}
report.save(context)
Expand Down

0 comments on commit 80e6023

Please sign in to comment.