Skip to content

Commit 04dd5f1

Browse files
authored
Support checks vuls (kubescape#121)
* support GetSubstepsWithVulnerabilities * minor * minor fix * small fix
1 parent 8334eca commit 04dd5f1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

reporthandling/attacktrack/v1alpha1/attacktrackmethods.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,11 @@ func (handler *AttackTrackAllPathsHandler) GenerateAttackTrackFromPaths(paths []
290290
// filterNodesWithControls - filters out nodes that do not have controls
291291
func (handler *AttackTrackAllPathsHandler) filterNodesWithControls(step IAttackTrackStep, paths [][]IAttackTrackStep) *AttackTrackStep {
292292
filteredStep := AttackTrackStep{
293-
Name: step.GetName(),
294-
Description: step.GetDescription(),
295-
SubSteps: nil,
296-
Controls: step.GetControls(),
293+
Name: step.GetName(),
294+
Description: step.GetDescription(),
295+
SubSteps: nil,
296+
Controls: step.GetControls(),
297+
ChecksVulnerabilities: step.DoesCheckVulnerabilities(),
297298
}
298299

299300
if step.Length() == 0 {

0 commit comments

Comments
 (0)