Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to import Github OSV #1694

Open
TG1999 opened this issue Dec 11, 2024 · 0 comments
Open

Failing to import Github OSV #1694

TG1999 opened this issue Dec 11, 2024 · 0 comments
Assignees

Comments

@TG1999
Copy link
Contributor

TG1999 commented Dec 11, 2024

Importing data using vulnerabilities.importers.github_osv.GithubOSVImporter
git clone --filter=blob:none https://github.com/github/advisory-database/ /tmp/tmp0yyi9k6j/checkout exited with 128
Failed to fetch git+https://github.com/github/advisory-database/ via vcs: git clone --filter=blob:none https://github.com/github/advisory-database/ /tmp/tmp0yyi9k6j/checkout exited with 128
Traceback (most recent call last):
File "/app/vulnerabilities/importer.py", line 378, in clone
self.vcs_response = fetch_via_vcs(repo_url)
File "/usr/local/lib/python3.9/site-packages/fetchcode/vcs/init.py", line 68, in fetch_via_vcs
backend.obtain(dest=dest_dir, url=misc.hide_url(url), verbosity=1)
File "/usr/local/lib/python3.9/site-packages/fetchcode/vcs/pip/_internal/vcs/versioncontrol.py", line 502, in obtain
self.fetch_new(dest, url, rev_options, verbosity=verbosity)
File "/usr/local/lib/python3.9/site-packages/fetchcode/vcs/pip/_internal/vcs/git.py", line 277, in fetch_new
self.run_command(
File "/usr/local/lib/python3.9/site-packages/fetchcode/vcs/pip/_internal/vcs/versioncontrol.py", line 631, in run_command
return call_subprocess(
File "/usr/local/lib/python3.9/site-packages/fetchcode/vcs/pip/_internal/utils/subprocess.py", line 209, in call_subprocess
raise error
fetchcode.vcs.pip._internal.exceptions.InstallationSubprocessError: git clone --filter=blob:none https://github.com/github/advisory-database/ /tmp/tmp0yyi9k6j/checkout exited with 128

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/app/vulnerabilities/management/commands/import.py", line 70, in import_data
ImportRunner(importer).run()
File "/app/vulnerabilities/import_runner.py", line 61, in run
count = self.process_advisories(advisory_datas=advisory_datas, importer_name=importer_name)
File "/app/vulnerabilities/import_runner.py", line 101, in process_advisories
for data in advisory_datas:
File "/app/vulnerabilities/importers/github_osv.py", line 41, in advisory_data
self.clone(repo_url=self.repo_url)
File "/app/vulnerabilities/importer.py", line 383, in clone
raise ForkError(msg) from e
vulnerabilities.importer.ForkError: Failed to fetch git+https://github.com/github/advisory-database/ via vcs: git clone --filter=blob:none https://github.com/github/advisory-database/ /tmp/tmp0yyi9k6j/checkout exited with 128
Failed to run importer vulnerabilities.importers.github_osv.GithubOSVImporter. Continuing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants