diff --git a/cve-vulner-manager/conf/product_app.conf b/cve-vulner-manager/conf/product_app.conf index 3c1be3c9d125945b7ad48ad60a510d174a70ee46..9cad5218e90282c61f127bf0f610374a4c4a5928 100644 --- a/cve-vulner-manager/conf/product_app.conf +++ b/cve-vulner-manager/conf/product_app.conf @@ -258,6 +258,7 @@ mindspore_owner = mindspore # git token git_mindspore_token = "${GITEE_MINDSPORE_TOKEN||xxx}" mindspore_version = "master,r1.10,r1.9,r2.0,r2.1,r2.2,r2.3" +assignee = rainyhorse [obs] access_key_id = "${OBS_KEY_ID||xxx}" diff --git a/cve-vulner-manager/taskhandler/common.go b/cve-vulner-manager/taskhandler/common.go index 3de5838eee7d1e8891fe7fc47225c303cd91df13..4d197b7698fa3533fef9da02c3a3aac0be8bfc09 100644 --- a/cve-vulner-manager/taskhandler/common.go +++ b/cve-vulner-manager/taskhandler/common.go @@ -1059,9 +1059,11 @@ func CreateIssueBody(accessToken, owner, path, assignee string, issue := IssueOptions{Token: accessToken, Repo: path, Title: cve.CveNum, IssueType: issueType, Body: body, Assignee: assignee, Labels: labels, SecurityHole: false} if cve.OrganizationID == util.MindSpore { + mindsporeAssignee := beego.AppConfig.String("mindspore::assignee") + issue.Program = "67813" - if assignee != "fangzhou0329" { - issue.Collaborators = "fangzhou0329" + if assignee != mindsporeAssignee { + issue.Collaborators = mindsporeAssignee } if mile != 0 { issue.Milestone = int64(mile)