Skip to content

Commit ce4433b

Browse files
committed
cmd/vulnreport: remove option to pull GHSAs from the GraphQL api
This was a backup option in case osv.dev did not have the GHSA yet; this is no longer needed now that we're pulling directly from Github. Change-Id: Ib5a1b9752eac1efe2a91ef0403771d5575180402 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/597755 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Damien Neil <[email protected]>
1 parent 4789343 commit ce4433b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

cmd/vulnreport/create.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313

1414
var (
1515
preferCVE = flag.Bool("cve", false, "for create, prefer CVEs over GHSAs as canonical source")
16-
graphQL = flag.Bool("graphql", false, "for create, fetch GHSAs from the Github GraphQL API instead of the OSV database")
1716
useAI = flag.Bool("ai", false, "for create, use AI to write draft summary and description when creating report")
1817
populateSymbols = flag.Bool("symbols", false, "for create, attempt to auto-populate symbols")
1918
user = flag.String("user", "", "for create & create-excluded, only consider issues assigned to the given user")

cmd/vulnreport/find_aliases.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,7 @@ func (a *aliasFinder) fetch(ctx context.Context, alias string) (report.Source, e
155155
var f report.Fetcher
156156
switch {
157157
case idstr.IsGHSA(alias):
158-
if *graphQL {
159-
// Doesn't work for test environment yet.
160-
f = a.gc.(*ghsa.Client)
161-
} else {
162-
f = genericosv.NewGHSAFetcher()
163-
}
158+
f = genericosv.NewGHSAFetcher()
164159
case idstr.IsCVE(alias):
165160
f = cve5.NewFetcher()
166161
default:

0 commit comments

Comments
 (0)