Output scan object in report
What does this MR do?
This MR adds Scanner
and ScanType
options to the Config struct, which will allow client projects to configure the scan object (implemented in Add Scan object with scanner and type to report) to the report output
Usage:
func main() {
app := cli.NewApp()
...
app.Commands = command.NewCommands(command.Config{
ArtifactName: command.ArtifactNameDependencyScanning,
Scanner: issue.ScannerDetails{
ID: "my-scanner",
Name: "my awesome scanner",
Version: "v1.0.0",
Vendor: issue.Vendor{
Name: issue.VendorName,
},
URL: issue.ScannerURL(id),
},
})
...
}
What are the relevant issue numbers?
gitlab-org/gitlab#202053 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Adam Cohen