Skip to content

Commit

Permalink
feat: add field inspect_report_url at query_result
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Jun 14, 2022
1 parent d382dbc commit bab436e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cmd/idea_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type PluginOutput struct {
ProjectId string `json:"project_id"`
InspectErrors []model.InspectError `json:"inspect_errors,omitempty"`
DependenciesCount int `json:"dependencies_count"`
InspectReportUrl string `json:"inspect_report_url"`
}
type PluginComp struct {
CompName string `json:"comp_name"`
Expand Down Expand Up @@ -111,6 +112,7 @@ func generatePluginOutput(c context.Context) *PluginOutput {
TotalContributors: ctx.TotalContributors,
ProjectId: ctx.ProjectId,
DependenciesCount: ctx.ScanResult.DependenciesCount,
InspectReportUrl: ctx.ScanResult.InspectReportUrl,
}
// merge module comps
rs := map[id]PluginComp{}
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 {
FixType string `json:"fix_type"`
} `json:"comps"`
} `json:"modules"`
TaskId string `json:"task_id"`
Status string `json:"status"`
TaskId string `json:"task_id"`
Status string `json:"status"`
InspectReportUrl string `json:"inspect_report_url"`
}

type VoVulnInfo struct {
Expand Down

0 comments on commit bab436e

Please sign in to comment.