Skip to content

Commit 23d6702

Browse files
committed
Refactor GitHub Query Utilization for Package Versions
Change the method used to fetch GitHub GraphQL queries in github.py Shift from vulnerabilities.utils.fetch_github_graphql_query to fetchcode.package_versions.github_response The change avoids dependencies on Django apps in vulnerabilities.utils Signed-off-by: PoJuDeSu <spes9850401@gmail.com>
1 parent 4a6734b commit 23d6702

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vulntotal/datasources/github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from dotenv import load_dotenv
1414
from packageurl import PackageURL
1515

16-
from vulnerabilities import utils
16+
from fetchcode.package_versions import github_response
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)