mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 15:37:50 -08:00
feat(misconf): render causes for Terraform (#8360)
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
This commit is contained in:
@@ -30,13 +30,14 @@ type MisconfResult struct {
|
||||
type MisconfResults []MisconfResult
|
||||
|
||||
type CauseMetadata struct {
|
||||
Resource string `json:",omitempty"`
|
||||
Provider string `json:",omitempty"`
|
||||
Service string `json:",omitempty"`
|
||||
StartLine int `json:",omitempty"`
|
||||
EndLine int `json:",omitempty"`
|
||||
Code Code `json:",omitempty"`
|
||||
Occurrences []Occurrence `json:",omitempty"`
|
||||
Resource string `json:",omitempty"`
|
||||
Provider string `json:",omitempty"`
|
||||
Service string `json:",omitempty"`
|
||||
StartLine int `json:",omitempty"`
|
||||
EndLine int `json:",omitempty"`
|
||||
Code Code `json:",omitempty"`
|
||||
Occurrences []Occurrence `json:",omitempty"`
|
||||
RenderedCause RenderedCause `json:",omitempty"`
|
||||
}
|
||||
|
||||
type Occurrence struct {
|
||||
@@ -45,6 +46,11 @@ type Occurrence struct {
|
||||
Location Location
|
||||
}
|
||||
|
||||
type RenderedCause struct {
|
||||
Raw string `json:",omitempty"`
|
||||
Highlighted string `json:",omitempty"`
|
||||
}
|
||||
|
||||
type Code struct {
|
||||
Lines []Line
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user