Skip to content

Commit b962be8

Browse files
julieqiugopherbot
authored andcommitted
internal/worker: initialize ghsaClient
The ghsaClient is initialized when creating a new worker server. Change-Id: Ic1b2d3d35faa4fd1126e6d2503bdbf0615ad7541 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/459638 Auto-Submit: Julie Qiu <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Tatiana Bradley <[email protected]> Run-TryBot: Julie Qiu <[email protected]> Run-TryBot: Julie Qiu <[email protected]> Reviewed-by: Julie Qiu <[email protected]>
1 parent 34375e4 commit b962be8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/worker/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ func NewServer(ctx context.Context, cfg Config) (_ *Server, err error) {
8080
}
8181
derrors.SetReportingClient(reportingClient)
8282
}
83+
84+
s.ghsaClient = ghsa.NewClient(ctx, cfg.GitHubAccessToken)
8385
if cfg.IssueRepo != "" {
8486
owner, repoName, err := gitrepo.ParseGitHubRepo(cfg.IssueRepo)
8587
if err != nil {

0 commit comments

Comments
 (0)