Skip to content

Commit a87415b

Browse files
patrick.rissmann@l3montree.compatrick.rissmann@l3montree.com
authored andcommitted
Renamed all scanner to scanner ID and went quickly over every mention of scannerID to see if I have to change the logic
1 parent ff11d83 commit a87415b

18 files changed

Lines changed: 79 additions & 80 deletions

cmd/devguard-scanner/commands/sca.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func getDirFromPath(path string) string {
343343
return path
344344
}
345345

346-
func scaCommandFactory(scanner string) func(cmd *cobra.Command, args []string) error {
346+
func scaCommandFactory(scannerID string) func(cmd *cobra.Command, args []string) error {
347347
return func(cmd *cobra.Command, args []string) error {
348348
core.InitLogger()
349349
token, assetName, apiUrl, failOnRisk, webUI := parseConfig(cmd)
@@ -400,7 +400,7 @@ func scaCommandFactory(scanner string) func(cmd *cobra.Command, args []string) e
400400
req.Header.Set("Content-Type", "application/json")
401401
req.Header.Set("X-Risk-Management", strconv.FormatBool(doRiskManagement))
402402
req.Header.Set("X-Asset-Name", assetName)
403-
req.Header.Set("X-Scanner", "github.com/l3montree-dev/devguard/cmd/devguard-scanner"+"/"+scanner)
403+
req.Header.Set("X-Scanner", "github.com/l3montree-dev/devguard/cmd/devguard-scanner/"+scannerID)
404404

405405
resp, err := http.DefaultClient.Do(req)
406406
if err != nil {

cmd/devguard-scanner/commands/secret_scanning.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func NewSecretScanningCommand() *cobra.Command {
4141
return secretScanningCommand
4242
}
4343

44-
func sarifCommandFactory(scanner string) func(cmd *cobra.Command, args []string) error {
44+
func sarifCommandFactory(scannerID string) func(cmd *cobra.Command, args []string) error {
4545
return func(cmd *cobra.Command, args []string) error {
4646
core.InitLogger()
4747
token, assetName, apiUrl, _, webUI := parseConfig(cmd)
@@ -64,7 +64,7 @@ func sarifCommandFactory(scanner string) func(cmd *cobra.Command, args []string)
6464
return errors.Wrap(err, "invalid path")
6565
}
6666

67-
file, err := executeCodeScan(scanner, path)
67+
file, err := executeCodeScan(scannerID, path)
6868
if err != nil {
6969
return errors.Wrap(err, "could not open file")
7070
}
@@ -96,7 +96,7 @@ func sarifCommandFactory(scanner string) func(cmd *cobra.Command, args []string)
9696
req.Header.Set("Content-Type", "application/json")
9797
req.Header.Set("X-Risk-Management", strconv.FormatBool(doRiskManagement))
9898
req.Header.Set("X-Asset-Name", assetName)
99-
req.Header.Set("X-Scanner", "github.com/l3montree-dev/devguard/cmd/devguard-scanner/"+scanner)
99+
req.Header.Set("X-Scanner", "github.com/l3montree-dev/devguard/cmd/devguard-scanner/"+scannerID)
100100

101101
resp, err := http.DefaultClient.Do(req)
102102
if err != nil {
@@ -116,19 +116,19 @@ func sarifCommandFactory(scanner string) func(cmd *cobra.Command, args []string)
116116
return errors.Wrap(err, "could not parse response")
117117
}
118118

119-
printFirstPartyScanResults(scanResponse, assetName, webUI, scanner)
119+
printFirstPartyScanResults(scanResponse, assetName, webUI, scannerID)
120120
return nil
121121
}
122122
}
123123

124-
func executeCodeScan(scanner, path string) (*os.File, error) {
125-
switch scanner {
124+
func executeCodeScan(scannerID, path string) (*os.File, error) {
125+
switch scannerID {
126126
case "secret-scanning":
127127
return secretScan(path)
128128
case "sast":
129129
return sastScan(path)
130130
default:
131-
return nil, fmt.Errorf("unknown scanner: %s", scanner)
131+
return nil, fmt.Errorf("unknown scanner: %s", scannerID)
132132
}
133133

134134
}
@@ -190,23 +190,23 @@ func secretScan(path string) (*os.File, error) {
190190
return file, nil
191191
}
192192

193-
func printFirstPartyScanResults(scanResponse scan.FirstPartyScanResponse, assetName string, webUI string, scanner string) {
193+
func printFirstPartyScanResults(scanResponse scan.FirstPartyScanResponse, assetName string, webUI string, scannerID string) {
194194

195195
slog.Info("First party scan results", "firstPartyVulnAmount", len(scanResponse.FirstPartyVulns), "openedByThisScan", scanResponse.AmountOpened, "closedByThisScan", scanResponse.AmountClosed)
196196

197197
if len(scanResponse.FirstPartyVulns) == 0 {
198198
return
199199
}
200200

201-
switch scanner {
201+
switch scannerID {
202202
case "secret-scanning":
203203
printSecretScanResults(scanResponse.FirstPartyVulns, webUI, assetName)
204204
return
205205
case "sast":
206206
printSastScanResults(scanResponse.FirstPartyVulns, webUI, assetName)
207207
return
208208
default:
209-
slog.Warn("unknown scanner", "scanner", scanner)
209+
slog.Warn("unknown scanner", "scanner", scannerID)
210210
return
211211
}
212212

internal/core/assetversion/asset_version_controller.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ func (a *assetVersionController) GetAssetVersionsByAssetID(ctx core.Context) err
6767
}
6868

6969
func (a *assetVersionController) AffectedComponents(ctx core.Context) error {
70-
scanner := ctx.QueryParam("scanner")
71-
if scanner == "" {
70+
scannerID := ctx.QueryParam("scanner")
71+
if scannerID == "" {
7272
return echo.NewHTTPError(400, "scanner query param is required")
7373
}
7474

7575
assetVersion := core.GetAssetVersion(ctx)
76-
_, dependencyVulns, err := a.getComponentsAndDependencyVulns(assetVersion, scanner)
76+
_, dependencyVulns, err := a.getComponentsAndDependencyVulns(assetVersion, scannerID)
7777
if err != nil {
7878
return err
7979
}
@@ -83,8 +83,8 @@ func (a *assetVersionController) AffectedComponents(ctx core.Context) error {
8383
}))
8484
}
8585

86-
func (a *assetVersionController) getComponentsAndDependencyVulns(assetVersion models.AssetVersion, scanner string) ([]models.ComponentDependency, []models.DependencyVuln, error) {
87-
components, err := a.componentRepository.LoadComponents(nil, assetVersion.Name, assetVersion.AssetID, scanner)
86+
func (a *assetVersionController) getComponentsAndDependencyVulns(assetVersion models.AssetVersion, scannerID string) ([]models.ComponentDependency, []models.DependencyVuln, error) {
87+
components, err := a.componentRepository.LoadComponents(nil, assetVersion.Name, assetVersion.AssetID, scannerID)
8888
if err != nil {
8989
return nil, nil, err
9090
}
@@ -103,12 +103,12 @@ func (a *assetVersionController) getComponentsAndDependencyVulns(assetVersion mo
103103
func (a *assetVersionController) DependencyGraph(ctx core.Context) error {
104104
app := core.GetAssetVersion(ctx)
105105

106-
scanner := ctx.QueryParam("scanner")
107-
if scanner == "" {
106+
scannerID := ctx.QueryParam("scanner")
107+
if scannerID == "" {
108108
return echo.NewHTTPError(400, "scanner query param is required")
109109
}
110110

111-
components, err := a.componentRepository.LoadComponents(nil, app.Name, app.AssetID, scanner)
111+
components, err := a.componentRepository.LoadComponents(nil, app.Name, app.AssetID, scannerID)
112112
if err != nil {
113113
return err
114114
}
@@ -125,14 +125,14 @@ func (a *assetVersionController) DependencyGraph(ctx core.Context) error {
125125
func (a *assetVersionController) GetDependencyPathFromPURL(ctx core.Context) error {
126126
assetVersion := core.GetAssetVersion(ctx)
127127

128-
scanner := ctx.QueryParam("scanner")
128+
scannerID := ctx.QueryParam("scanner")
129129
pURL := ctx.QueryParam("purl")
130130

131-
if scanner == "" {
131+
if scannerID == "" {
132132
return echo.NewHTTPError(400, "scanner query param is required")
133133
}
134134

135-
components, err := a.componentRepository.LoadPathToComponent(nil, assetVersion.Name, assetVersion.AssetID, pURL, scanner)
135+
components, err := a.componentRepository.LoadPathToComponent(nil, assetVersion.Name, assetVersion.AssetID, pURL, scannerID)
136136
if err != nil {
137137
return err
138138
}
@@ -196,12 +196,12 @@ func (a *assetVersionController) buildSBOM(ctx core.Context) (*cdx.BOM, error) {
196196
}
197197
}
198198

199-
scanner := ctx.QueryParam("scanner")
200-
if scanner == "" {
199+
scannerID := ctx.QueryParam("scanner")
200+
if scannerID == "" {
201201
return nil, echo.NewHTTPError(400, "scanner query param is required")
202202
}
203203

204-
components, err := a.componentRepository.LoadComponents(nil, assetVersion.Name, assetVersion.AssetID, scanner)
204+
components, err := a.componentRepository.LoadComponents(nil, assetVersion.Name, assetVersion.AssetID, scannerID)
205205
if err != nil {
206206
return nil, err
207207
}
@@ -224,19 +224,19 @@ func (a *assetVersionController) buildVeX(ctx core.Context) (*cdx.BOM, error) {
224224
}
225225
}
226226

227-
scanner := ctx.QueryParam("scanner")
228-
if scanner == "" {
227+
scannerID := ctx.QueryParam("scanner")
228+
if scannerID == "" {
229229
return nil, echo.NewHTTPError(400, "scanner query param is required")
230230
}
231231

232232
// url decode the scanner
233-
scanner, err := url.QueryUnescape(scanner)
233+
scannerID, err := url.QueryUnescape(scannerID)
234234
if err != nil {
235235
return nil, err
236236
}
237237

238238
// get all associated dependencyVulns
239-
components, dependencyVulns, err := a.getComponentsAndDependencyVulns(assetVersion, scanner)
239+
components, dependencyVulns, err := a.getComponentsAndDependencyVulns(assetVersion, scannerID)
240240
if err != nil {
241241
return nil, err
242242
}

internal/core/assetversion/asset_version_service.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (s *service) HandleFirstPartyVulnResult(asset models.Asset, assetVersion *m
7272
AssetVersionName: assetVersion.Name,
7373
AssetID: asset.ID,
7474
Message: &result.Message.Text,
75-
ScannerID: scannerID,
75+
ScannerIDs: scannerID,
7676
},
7777
RuleID: result.RuleId,
7878
Uri: result.Locations[0].PhysicalLocation.ArtifactLocation.Uri,
@@ -155,13 +155,13 @@ func (s *service) handleFirstPartyVulnResult(userID string, scannerID string, as
155155
return len(newVulns), len(fixedVulns), append(newVulns, comparison.InBoth...), nil
156156
}
157157

158-
func (s *service) HandleScanResult(asset models.Asset, assetVersion *models.AssetVersion, vulns []models.VulnInPackage, scanner string, scannerID string, userID string, doRiskManagement bool) (amountOpened int, amountClose int, newState []models.DependencyVuln, err error) {
158+
func (s *service) HandleScanResult(asset models.Asset, assetVersion *models.AssetVersion, vulns []models.VulnInPackage, scannerID string, userID string, doRiskManagement bool) (amountOpened int, amountClose int, newState []models.DependencyVuln, err error) {
159159

160160
// create dependencyVulns out of those vulnerabilities
161161
dependencyVulns := []models.DependencyVuln{}
162162

163163
// load all asset components again and build a dependency tree
164-
assetComponents, err := s.componentRepository.LoadComponents(nil, assetVersion.Name, assetVersion.AssetID, scanner)
164+
assetComponents, err := s.componentRepository.LoadComponents(nil, assetVersion.Name, assetVersion.AssetID, scannerID)
165165
if err != nil {
166166
return 0, 0, []models.DependencyVuln{}, errors.Wrap(err, "could not load asset components")
167167
}
@@ -183,7 +183,7 @@ func (s *service) HandleScanResult(asset models.Asset, assetVersion *models.Asse
183183
Vulnerability: models.Vulnerability{
184184
AssetVersionName: assetVersion.Name,
185185
AssetID: asset.ID,
186-
ScannerID: scannerID + " ",
186+
ScannerIDs: scannerID + " ",
187187
},
188188
CVEID: utils.Ptr(v.CVEID),
189189
ComponentPurl: utils.Ptr(v.Purl),
@@ -208,7 +208,7 @@ func (s *service) HandleScanResult(asset models.Asset, assetVersion *models.Asse
208208

209209
devguardScanner := "github.com/l3montree-dev/devguard/cmd/devguard-scanner" + "/"
210210

211-
switch scanner {
211+
switch scannerID {
212212

213213
case devguardScanner + "sca":
214214
assetVersion.LastScaScan = utils.Ptr(time.Now())
@@ -255,8 +255,8 @@ func (s *service) handleScanResult(userID string, scannerID string, assetVersion
255255

256256
// Now we work on the vulnerabilities found in both sets -> has the vulnerability this scanner id already in his scanner_ids
257257
for i := range foundByScannerAndExisting {
258-
if !strings.Contains(foundByScannerAndExisting[i].ScannerID, scannerID) {
259-
foundByScannerAndExisting[i].ScannerID = foundByScannerAndExisting[i].ScannerID + scannerID
258+
if !strings.Contains(foundByScannerAndExisting[i].ScannerIDs, scannerID) {
259+
foundByScannerAndExisting[i].ScannerIDs = foundByScannerAndExisting[i].ScannerIDs + " " + scannerID
260260
}
261261
}
262262

@@ -270,10 +270,10 @@ func (s *service) handleScanResult(userID string, scannerID string, assetVersion
270270
//Last we have to change the already existing vulnerabilities which were not found this time
271271

272272
for i := range notFoundByScannerAndExisting {
273-
if notFoundByScannerAndExisting[i].ScannerID == scannerID {
274-
notFoundByScannerAndExisting[i].ScannerID = ""
273+
if notFoundByScannerAndExisting[i].ScannerIDs == scannerID {
274+
notFoundByScannerAndExisting[i].ScannerIDs = ""
275275
vulnerabilitiesToFix = append(vulnerabilitiesToFix, notFoundByScannerAndExisting[i])
276-
} else if strings.Contains(notFoundByScannerAndExisting[i].ScannerID, scannerID) {
276+
} else if strings.Contains(notFoundByScannerAndExisting[i].ScannerIDs, scannerID) {
277277
removeScannerFromVulnerability(&notFoundByScannerAndExisting[i], scannerID)
278278
vulnerabilitiesToUpdate = append(vulnerabilitiesToUpdate, notFoundByScannerAndExisting[i])
279279
}
@@ -301,7 +301,7 @@ func (s *service) handleScanResult(userID string, scannerID string, assetVersion
301301
// pass by reference to edit the actual vulnerability and not a copy
302302
func removeScannerFromVulnerability(vulnerability *models.DependencyVuln, scannerID string) {
303303

304-
vulnerability.ScannerID = strings.Replace(vulnerability.ScannerID, scannerID, "", 1)
304+
vulnerability.ScannerIDs = strings.Replace(vulnerability.ScannerIDs, scannerID, "", 1)
305305
}
306306

307307
func recursiveBuildBomRefMap(component cdx.Component) map[string]cdx.Component {

internal/core/common_interfaces.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ type AffectedComponentRepository interface {
8787
type ComponentRepository interface {
8888
common.Repository[string, models.Component, DB]
8989

90-
LoadComponents(tx DB, assetVersionName string, assetID uuid.UUID, scanner string) ([]models.ComponentDependency, error)
91-
LoadComponentsWithProject(tx DB, assetVersionName string, assetID uuid.UUID, scanner string, pageInfo PageInfo, search string, filter []FilterQuery, sort []SortQuery) (Paged[models.ComponentDependency], error)
92-
LoadPathToComponent(tx DB, assetVersionName string, assetID uuid.UUID, pURL string, scanner string) ([]models.ComponentDependency, error)
90+
LoadComponents(tx DB, assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.ComponentDependency, error)
91+
LoadComponentsWithProject(tx DB, assetVersionName string, assetID uuid.UUID, scannerID string, pageInfo PageInfo, search string, filter []FilterQuery, sort []SortQuery) (Paged[models.ComponentDependency], error)
92+
LoadPathToComponent(tx DB, assetVersionName string, assetID uuid.UUID, pURL string, scannerID string) ([]models.ComponentDependency, error)
9393
SaveBatch(tx DB, components []models.Component) error
9494
FindByPurl(tx DB, purl string) (models.Component, error)
9595
HandleStateDiff(tx DB, assetVersionName string, assetID uuid.UUID, oldState []models.ComponentDependency, newState []models.ComponentDependency) error
9696
GetDependencyCountPerScanner(assetVersionName string, assetID uuid.UUID) (map[string]int, error)
97-
GetLicenseDistribution(tx DB, assetVersionName string, assetID uuid.UUID, scanner string) (map[string]int, error)
97+
GetLicenseDistribution(tx DB, assetVersionName string, assetID uuid.UUID, scannerID string) (map[string]int, error)
9898
}
9999

100100
type DependencyVulnRepository interface {
@@ -195,7 +195,7 @@ type AssetVersionService interface {
195195
GetAssetVersionsByAssetID(assetID uuid.UUID) ([]models.AssetVersion, error)
196196
HandleFirstPartyVulnResult(asset models.Asset, assetVersion *models.AssetVersion, sarifScan models.SarifResult, scannerID string, userID string, doRiskManagement bool) (int, int, []models.FirstPartyVulnerability, error)
197197
UpdateSBOM(assetVersion models.AssetVersion, scannerID string, sbom normalize.SBOM) error
198-
HandleScanResult(asset models.Asset, assetVersion *models.AssetVersion, vulns []models.VulnInPackage, scanner string, scannerID string, userID string, doRiskManagement bool) (amountOpened int, amountClose int, newState []models.DependencyVuln, err error)
198+
HandleScanResult(asset models.Asset, assetVersion *models.AssetVersion, vulns []models.VulnInPackage, scannerID string, userID string, doRiskManagement bool) (amountOpened int, amountClose int, newState []models.DependencyVuln, err error)
199199
}
200200

201201
type AssetVersionRepository interface {
@@ -291,7 +291,7 @@ type ComponentProjectRepository interface {
291291
}
292292

293293
type ComponentService interface {
294-
GetAndSaveLicenseInformation(assetVersionName string, assetID uuid.UUID, scanner string) ([]models.Component, error)
294+
GetAndSaveLicenseInformation(assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.Component, error)
295295
RefreshComponentProjectInformation(project models.ComponentProject)
296296
GetLicense(component models.Component) (models.Component, error)
297297
}

internal/core/component/component_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ func (s *service) GetLicense(component models.Component) (models.Component, erro
149149
return component, nil
150150
}
151151

152-
func (s *service) GetAndSaveLicenseInformation(assetVersionName string, assetID uuid.UUID, scanner string) ([]models.Component, error) {
153-
componentDependencies, err := s.componentRepository.LoadComponents(nil, assetVersionName, assetID, scanner)
152+
func (s *service) GetAndSaveLicenseInformation(assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.Component, error) {
153+
componentDependencies, err := s.componentRepository.LoadComponents(nil, assetVersionName, assetID, scannerID)
154154
if err != nil {
155155
return nil, err
156156
}

internal/core/daemon/flaw_daemon.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ func UpdateComponentProperties(db core.DB) error {
7474
// group by scanner id
7575
groups := make(map[string]map[string][]models.DependencyVuln)
7676
for _, f := range dependencyVulns {
77-
if _, ok := groups[f.ScannerID]; !ok {
78-
groups[f.ScannerID] = make(map[string][]models.DependencyVuln)
77+
if _, ok := groups[f.ScannerIDs]; !ok {
78+
groups[f.ScannerIDs] = make(map[string][]models.DependencyVuln)
7979
}
8080

81-
if _, ok := groups[f.ScannerID][f.AssetVersionName]; !ok {
82-
groups[f.ScannerID][f.AssetVersionName] = make([]models.DependencyVuln, 0)
81+
if _, ok := groups[f.ScannerIDs][f.AssetVersionName]; !ok {
82+
groups[f.ScannerIDs][f.AssetVersionName] = make([]models.DependencyVuln, 0)
8383
}
8484

85-
groups[f.ScannerID][f.AssetVersionName] = append(groups[f.ScannerID][f.AssetVersionName], f)
85+
groups[f.ScannerIDs][f.AssetVersionName] = append(groups[f.ScannerIDs][f.AssetVersionName], f)
8686
}
8787

8888
// group the dependencyVulns by scanner id

internal/core/dependency_vuln/dependency_vuln_controller.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package dependency_vuln
22

33
import (
44
"encoding/json"
5-
"fmt"
65
"log/slog"
76
"slices"
87

@@ -136,7 +135,7 @@ func (c dependencyVulnHttpController) ListPaged(ctx core.Context) error {
136135
// append the dependencyVuln to the package
137136
dependencyVulnsByPackage.DependencyVulns = append(res[*dependencyVuln.ComponentPurl].DependencyVulns, DependencyVulnDTO{
138137
ID: dependencyVuln.ID,
139-
ScannerID: dependencyVuln.ScannerID,
138+
ScannerID: dependencyVuln.ScannerIDs,
140139
Message: dependencyVuln.Message,
141140
AssetVersionName: dependencyVuln.AssetVersionName,
142141
AssetID: dependencyVuln.AssetID.String(),
@@ -227,7 +226,7 @@ func (c dependencyVulnHttpController) Read(ctx core.Context) error {
227226
}
228227

229228
func (c dependencyVulnHttpController) CreateEvent(ctx core.Context) error {
230-
fmt.Printf("Called 'CreateEvent'")
229+
231230
asset := core.GetAsset(ctx)
232231
assetVersion := core.GetAssetVersion(ctx)
233232
thirdPartyIntegration := core.GetThirdPartyIntegration(ctx)
@@ -297,7 +296,7 @@ func convertToDetailedDTO(dependencyVuln models.DependencyVuln) detailedDependen
297296
Priority: dependencyVuln.Priority,
298297
LastDetected: dependencyVuln.LastDetected,
299298
CreatedAt: dependencyVuln.CreatedAt,
300-
ScannerID: dependencyVuln.ScannerID,
299+
ScannerID: dependencyVuln.ScannerIDs,
301300
TicketID: dependencyVuln.TicketID,
302301
TicketURL: dependencyVuln.TicketURL,
303302
RiskRecalculatedAt: dependencyVuln.RiskRecalculatedAt,

internal/core/dependency_vuln/dependency_vuln_dto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func DependencyVulnToDto(f models.DependencyVuln) DependencyVulnDTO {
5555

5656
return DependencyVulnDTO{
5757
ID: f.ID,
58-
ScannerID: f.ScannerID,
58+
ScannerID: f.ScannerIDs,
5959
Message: f.Message,
6060
AssetVersionName: f.AssetVersionName,
6161
AssetID: f.AssetID.String(),

internal/core/dependency_vuln/first_party_vuln_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func convertFirstPartyVulnToDetailedDTO(firstPartyVuln models.FirstPartyVulnerab
204204
return detailedFirstPartyVulnDTO{
205205
FirstPartyVulnDTO: FirstPartyVulnDTO{
206206
ID: firstPartyVuln.ID,
207-
ScannerID: firstPartyVuln.ScannerID,
207+
ScannerID: firstPartyVuln.ScannerIDs,
208208
Message: firstPartyVuln.Message,
209209
AssetID: firstPartyVuln.AssetID.String(),
210210
State: firstPartyVuln.State,

0 commit comments

Comments
 (0)