Support importance in mitigation import
Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
@@ -52,6 +52,7 @@ type (
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Category string `json:"category"`
|
Category string `json:"category"`
|
||||||
|
Importance coredata.MitigationImportance `json:"importance"`
|
||||||
} `json:"mitigations"`
|
} `json:"mitigations"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -99,7 +100,7 @@ func (s MitigationService) Import(
|
|||||||
Category: mitigation.Category,
|
Category: mitigation.Category,
|
||||||
State: coredata.MitigationStateNotStarted,
|
State: coredata.MitigationStateNotStarted,
|
||||||
Standards: []string{},
|
Standards: []string{},
|
||||||
Importance: coredata.MitigationImportancePreferred,
|
Importance: mitigation.Importance,
|
||||||
CreatedAt: now,
|
CreatedAt: now,
|
||||||
UpdatedAt: now,
|
UpdatedAt: now,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user