Skip to content

Incorrect Import Path in VulnTotal Github datasource #1499

Description

@michaelehab

There is an incorrect import path in the vulntotal/datasources/github.py file. The current import statement:

from fetchcode.package_versions import github_response

should be updated to:

from fetchcode.utils import github_response

Steps to Reproduce:

  • Attempt to run the code in vulntotal/datasources/github.py.
  • Observe the import error indicating that github_response cannot be found in fetchcode.package_versions.

Expected Behavior:

  • The import should work correctly, and the github_response function should be imported from fetchcode.utils.

Additional Context:

  • This change is necessary to align with the current structure of the fetchcode package.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions