Skip to content

Commit

Permalink
update import in github.py
Browse files Browse the repository at this point in the history
  • Loading branch information
poju3185 committed Mar 21, 2024
1 parent 4a6734b commit d809940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vulntotal/datasources/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from dotenv import load_dotenv
from packageurl import PackageURL

from vulnerabilities import utils
from fetchcode.package_versions import github_response
from vulntotal.validator import DataSource
from vulntotal.validator import InvalidCVEError
from vulntotal.validator import VendorData
Expand All @@ -35,7 +35,7 @@ def fetch_github(self, graphql_query):
GH_TOKEN="your-github-token"
"""
load_dotenv()
return utils.fetch_github_graphql_query(graphql_query)
return github_response(graphql_query)

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

0 comments on commit d809940

Please sign in to comment.