Skip to content

Commit

Permalink
Support checks vuls (#121)
Browse files Browse the repository at this point in the history
* support GetSubstepsWithVulnerabilities

* minor

* minor fix

* small fix
  • Loading branch information
kooomix authored Jul 20, 2023
1 parent 8334eca commit 04dd5f1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions reporthandling/attacktrack/v1alpha1/attacktrackmethods.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,11 @@ func (handler *AttackTrackAllPathsHandler) GenerateAttackTrackFromPaths(paths []
// filterNodesWithControls - filters out nodes that do not have controls
func (handler *AttackTrackAllPathsHandler) filterNodesWithControls(step IAttackTrackStep, paths [][]IAttackTrackStep) *AttackTrackStep {
filteredStep := AttackTrackStep{
Name: step.GetName(),
Description: step.GetDescription(),
SubSteps: nil,
Controls: step.GetControls(),
Name: step.GetName(),
Description: step.GetDescription(),
SubSteps: nil,
Controls: step.GetControls(),
ChecksVulnerabilities: step.DoesCheckVulnerabilities(),
}

if step.Length() == 0 {
Expand Down

0 comments on commit 04dd5f1

Please sign in to comment.