Skip to content

Commit 045fedd

Browse files
authored
Merge pull request #1445 from poju3185/fix-vulntotal-import
Update GitHub GraphQL import in vulntotal datasources
2 parents 4a6734b + 22132ef commit 045fedd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"https://api.github.com/graphql", # Requires auth
3535
"https://anongit.gentoo.org/git/data/glsa.git", # Git only link
3636
"https://www.softwaretestinghelp.com/how-to-write-good-bug-report/", # Cloudflare protection
37+
"https://www.openssl.org/news/vulnerabilities.xml", # OpenSSL legacy advisory URL, not longer available
3738
]
3839

3940
# Add any Sphinx extension module names here, as strings. They can be

vulntotal/datasources/github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
from typing import Iterable
1212

1313
from dotenv import load_dotenv
14+
from fetchcode.package_versions import github_response
1415
from packageurl import PackageURL
1516

16-
from vulnerabilities import utils
1717
from vulntotal.validator import DataSource
1818
from vulntotal.validator import InvalidCVEError
1919
from vulntotal.validator import VendorData
@@ -35,7 +35,7 @@ def fetch_github(self, graphql_query):
3535
GH_TOKEN="your-github-token"
3636
"""
3737
load_dotenv()
38-
return utils.fetch_github_graphql_query(graphql_query)
38+
return github_response(graphql_query)
3939

4040
def datasource_advisory(self, purl) -> Iterable[VendorData]:
4141
end_cursor = ""

0 commit comments

Comments
 (0)