Attestation predicate reads `project_config.project_type`, which `ProjectConfig` does not define
Maintainer thường phản hồi trong vòng 2 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 62/100
Hướng nghiên cứu
Read packages/darnit-baseline/src/darnit_baseline/attestation/predicate.py alongside the ProjectConfig schema at packages/darnit/src/darnit/config/schema.py, then inspect the predicate callers and existing tests. Add coverage for building a predicate with a real ProjectConfig; done means the predicate no longer raises and its no-config type behavior is decided and documented in the predicate changelog.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
packages/darnit-baseline/src/darnit_baseline/attestation/predicate.py:147 builds the predicate with:
"project_type": project_config.project_type if project_config else "software",
ProjectConfig (packages/darnit/src/darnit/config/schema.py) has a type field, not project_type (create_minimal_config(..., project_type=...) maps its argument to type=). When a project configuration is passed (attestation/__init__.py:22, attestation/generator.py:92), this raises AttributeError instead of producing a predicate. It has gone unnoticed because the common paths pass None and fall back to "software".
Proposed fix:
- Read
project_config.type. - Decide whether the
"software"fallback is right when no configuration exists: it states a project type nobody confirmed. Omitting the field, or recording it as unknown, may be more accurate. This is a predicate field, so the change is observable by attestation consumers and should be noted in the predicate's changelog. - Add a test that builds a predicate with a real
ProjectConfig.
- Ngôn ngữ chính
- Python
- Star
- 22
- Fork
- 27
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 52
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọ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 darnitdevorg/darnit
-
module-core needs triage ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
darnitdevorg/darnit#648 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
ci needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
darnitdevorg/darnit#607 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
dependencies module-baseline needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
darnitdevorg/darnit#606 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`darnit validate` crashes on openssf-baseline.toml summarising levelsCó thể đã có người làm @i-am-paradox đã nhận 11 ngày trước. Đang mởinterface-cli module-core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
darnitdevorg/darnit#589 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
good first issue maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
darnitdevorg/darnit#587 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của darnitdevorg/darnit
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
conda-forge/conda-forge-bot#7025 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chore(ci): publish.yml's release-job comment counts the hand-created Releases as all of themĐang mởarea:ci
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
catincloud-labs/dagster-dex#149 ·
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 84/100
home-assistant/core#188424 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Review backlog (docs-currency): README 'CI run' link lands on a run whose overall badge is cancelledĐang mởagent/reviewer needs-kind needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
projectbluefin/utah#880 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
LSan reports obj_gen leak on post-parse usage() exits (aarch64)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
redis/memtier_benchmark#850 ·
Maintainer thường phản hồi trong vòng 1 ngày