Skip to content

Commit

Permalink
Add missing IacMetdata (#1505)
Browse files Browse the repository at this point in the history
- Provider and Service added to IacMetadata on misconfiguration
  • Loading branch information
Owen Rumney committed Dec 22, 2021
1 parent 628a796 commit 7f859af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/scanner/local/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ func toDetectedMisconfiguration(res ftypes.MisconfResult, defaultSeverity dbType
Traces: res.Traces,
IacMetadata: ftypes.IacMetadata{
Resource: res.Resource,
Provider: res.Provider,
Service: res.Service,
StartLine: res.StartLine,
EndLine: res.EndLine,
},
Expand Down

0 comments on commit 7f859af

Please sign in to comment.