Skip to content

Commit

Permalink
Merge pull request #179 from rayandas/scan-report-fix
Browse files Browse the repository at this point in the history
Add profile name in the generated/downloaded scan report
  • Loading branch information
rayandas authored Jan 24, 2023
2 parents 7a93c14 + 6f1f32d commit 5bf5e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/securityscan/jobHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (c *Controller) getScanSummary(outputBytes []byte) (*v1.ClusterScanSummary,
func (c *Controller) createClusterScanReport(ctx context.Context, outputBytes []byte, scan *v1.ClusterScan) (*v1.ClusterScanReport, error) {
scanReport := &v1.ClusterScanReport{
ObjectMeta: metav1.ObjectMeta{
GenerateName: name.SafeConcatName("scan-report", scan.Name) + "-",
GenerateName: name.SafeConcatName("scan-report", scan.Name, scan.Spec.ScanProfileName) + "-",
},
}
profile, err := c.getClusterScanProfile(ctx, scan)
Expand Down

0 comments on commit 5bf5e18

Please sign in to comment.