Skip to content

Commit

Permalink
add profile name in generated scan report
Browse files Browse the repository at this point in the history
  • Loading branch information
rayandas committed Jan 13, 2023
1 parent 0db155a commit 6f1f32d
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 6f1f32d

Please sign in to comment.