1
1
from dataclasses import dataclass , field
2
+ from datetime import datetime
2
3
from typing import List , Optional , Type , cast
3
4
4
5
import marshmallow_dataclass
@@ -14,8 +15,13 @@ class IaCVulnerability(Base, FromDictMixin):
14
15
line_start : int
15
16
description : str
16
17
documentation_url : str
17
- component : str = ""
18
- severity : str = ""
18
+ component : str
19
+ severity : str
20
+ url : Optional [str ] = None
21
+ status : Optional [str ] = None
22
+ ignored_until : Optional [datetime ] = None
23
+ ignore_reason : Optional [str ] = None
24
+ ignore_comment : Optional [str ] = None
19
25
20
26
21
27
IaCVulnerabilitySchema = cast (
@@ -55,6 +61,7 @@ class IaCScanParameters(Base, FromDictMixin):
55
61
class IaCScanResult (Base , FromDictMixin ):
56
62
id : str = ""
57
63
type : str = ""
64
+ source_found : bool = False
58
65
iac_engine_version : str = ""
59
66
entities_with_incidents : List [IaCFileResult ] = field (default_factory = list )
60
67
@@ -76,6 +83,7 @@ class IaCDiffScanEntities(Base):
76
83
class IaCDiffScanResult (Base , FromDictMixin ):
77
84
id : str = ""
78
85
type : str = ""
86
+ source_found : bool = False
79
87
iac_engine_version : str = ""
80
88
entities_with_incidents : IaCDiffScanEntities = field (
81
89
default_factory = IaCDiffScanEntities
0 commit comments