aboutcode-org / aboutcode-org/vulnerablecode

Istio importer fails

Đang mở
#2,016 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
702
Fork
328
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
3

Mô tả

Hi Team,

I have noticed this error when I tried to start the Istio importer:

```
./manage.py import vulnerabilities.importers.istio.IstioImporter
Importing data using vulnerabilities.importers.istio.IstioImporter
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 62, in run
count = self.process_advisories(advisory_datas=advisory_datas, importer_name=importer_name)
File "/app/vulnerabilities/import_runner.py", line 105, in process_advisories
for data in advisory_datas:
File "/app/vulnerabilities/importers/istio.py", line 59, in advisory_data
yield from self.process_file(file=file, base_path=base_path)
File "/app/vulnerabilities/importers/istio.py", line 65, in process_file
advisory_url = get_advisory_url(
File "/app/vulnerabilities/utils.py", line 533, in get_advisory_url
relative_path = str(file.relative_to(base_path)).strip("/")
AttributeError: 'str' object has no attribute 'relative_to'
Failed to run importer vulnerabilities.importers.istio.IstioImporter. Continuing...
CommandError: 1 failed!: vulnerabilities.importers.istio.IstioImporter
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.