Skip to content

Commit

Permalink
fix: ideascan field CompSecScore
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Jun 20, 2022
1 parent 930d99a commit b5fa993
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions model/idea_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type PluginComp struct {
IsDirectDependency bool `json:"is_direct_dependency"`
Language string `json:"language"`
FixType string `json:"fix_type"`
CompSecScore int `json:"comp_sec_score"`
}

type PluginCompLicense struct {
Expand Down Expand Up @@ -120,6 +121,7 @@ func GenerateIdeaOutput(c context.Context) string {
Solutions: []PluginCompSolution{},
Language: mod.Language,
FixType: comp.FixType,
CompSecScore: comp.CompSecScore,
}
for _, it := range comp.MinFixedInfo {
p.DisposePlan = append(p.DisposePlan, PluginCompFix{
Expand Down
5 changes: 3 additions & 2 deletions model/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ type TaskScanResponse struct {
Description string `json:"description"`
Type string `json:"type,omitempty"`
} `json:"solutions,omitempty"`
Vuls []VoVulnInfo `json:"vuls"`
FixType string `json:"fix_type"`
Vuls []VoVulnInfo `json:"vuls"`
FixType string `json:"fix_type"`
CompSecScore int `json:"comp_sec_score"`
} `json:"comps"`
} `json:"modules"`
TaskId string `json:"task_id"`
Expand Down

0 comments on commit b5fa993

Please sign in to comment.