`gitlab_importer_v2` pipeline failing due to malformed YAML file
Maintainer thường phản hồi trong vòng 5 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python, yaml
- Lĩnh vực
- backend, data-engineering
Hướng nghiên cứu
Bắt đầu trong vulnerabilities/pipelines/v2_importers/gitlab_importer.py, nơi parse_gitlab_advisory gọi saneyaml.load quanh dòng 208; tái hiện với tệp advisory được liên kết để thấy lỗi YAML nhiều tài liệu. Sau đó theo dõi cách collect_advisories được lặp từ vulnerabilities/pipelines/__init__.py để một tệp lỗi có thể bị bỏ qua hoặc ghi log mà không hủy cả lô. Hoàn tất nghĩa là importer tiếp tục vượt qua advisory sai định dạng, báo cáo nó và một kiểm thử hồi quy bao phủ đường bỏ qua.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
GitLab importer pipeline is failing due to malformed YAML file https://gitlab.com/gitlab-org/advisories-community/-/blob/66bba584cc78745661635d1e3bc19a6d2edf1144/npm/reasonix/CVE-2026-102437.yml
expected a single document in the stream
in "/tmp/tmpqd_cy1jx/checkout/npm/reasonix/CVE-2026-102437.yml", line 2, column 1
but found another document
in "/tmp/tmpqd_cy1jx/checkout/npm/reasonix/CVE-2026-102437.yml", line 30, column 1
Traceback:
File "/app/vulnerabilities/pipelines/__init__.py", line 111, in execute
step(self)
File "/app/vulnerabilities/pipelines/__init__.py", line 336, in collect_and_store_advisories
for advisory in progress.iter(self.collect_advisories()):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aboutcode/pipeline/__init__.py", line 314, in iter
for item in iterator:
^^^^^^^^
File "/app/vulnerabilities/pipelines/v2_importers/gitlab_importer.py", line 100, in collect_advisories
advisory = parse_gitlab_advisory(
^^^^^^^^^^^^^^^^^^^^^^
File "/app/vulnerabilities/pipelines/v2_importers/gitlab_importer.py", line 208, in parse_gitlab_advisory
gitlab_advisory = saneyaml.load(f)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/saneyaml.py", line 62, in load
return yaml.load(s, Loader=loader)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/yaml/__init__.py", line 81, in load
return loader.get_single_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/yaml/constructor.py", line 49, in get_single_data
node = self.get_single_node()
^^^^^^^^^^^^^^^^^^^^^^
File "yaml/_yaml.pyx", line 681, in yaml._yaml.CParser.get_single_node
- The entire pipeline should not fail due to a single malformed file.
- The malformed advisory in question should be reported upstream.
- Ngôn ngữ chính
- Python
- Star
- 719
- Fork
- 359
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aboutcode-org/vulnerablecode
-
Pipeline run pages return 500 for a schedule whose pipeline is not registeredCó thể đã có người làm @sanchit955 đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
aboutcode-org/vulnerablecode#2505 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Affected-by-advisories v2 page returns 500 for a purl with no matching packageCó thể đã có người làm @sanchit955 đã nhận 8 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
aboutcode-org/vulnerablecode#2501 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
OSV v3 parser shares introduced/fixed commit patches across affected packagesCó thể đã có người làm @Celestial-0 đã nhận 21 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
aboutcode-org/vulnerablecode#2489 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
OSV parser drops all crates.io affected entries because the ecosystem mapping uses cargoCó thể đã có người làm @Ashutosh-Panda2004 đã nhận 27 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
aboutcode-org/vulnerablecode#2485 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Docker Compose setup fails on wait-for-it host web:8000 and missing runtime .envCó thể đã có người làm @Anurag-S1ngh đã nhận 31 ngày trước. Đang mở
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 77/100
aboutcode-org/vulnerablecode#2477 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của aboutcode-org/vulnerablecode
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
intuitem/ciso-assistant-community#5380 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
confluentinc/cp-ansible#2767 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug docs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
mesa/mesa#4223 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 2 ngày
-
metaskirando
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày