Improve package download flow

Đang mở
#770 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
gitlab, go
Lĩnh vực
backend, infrastructure

Hướng nghiên cứu

Bắt đầu bằng cách lần theo luồng hiện có để tải xuống gói, phân tích, lưu trữ archive và tải lên được mô tả trong issue, cùng với các thay đổi từ #739. Xác định một thiết kế bảo đảm archive được phân tích chính là archive được lưu và tải lên, đồng thời quyết định cách xử lý các gói Packagist được lưu trữ trên GitLab hoặc liệu có cần hành vi legacy hay không.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement needs discussion

Since #739 has been merged, we now have the ability to redownload and save the package archive (**) after analysis.

It would be ideal if the downloaded/saved archive is the same one that's used for analysis

Some possible ways to achieve this:

  1. Downloading the archive first in the worker container, then copying it into the static and dynamic sandboxes. These then do analysis as if on a local package.
  2. Have the static analysis sandbox double as the 'package downloader' container, then copy the downloaded files back to the host and into the dynamic analysis container, as well as uploading them to the bucket
  3. Have a separate 'downloader' container whose sole job is to download everything, and pass it to the other containers like in option 1.

** One caveat with all this is that Packagist packages hosted on GitLab don't offer direct package archive download URLs. We will need to figure out how to support this case (or possibly fall back to legacy behaviour).

Ngôn ngữ chính
Go
Star
925
Fork
75
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ossf/package-analysis

Tất cả issue của ossf/package-analysis

Issue tương tự

Thêm issue về Go

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.