Threat detection fails the run when it was skipped and `continue-on-error: false`
Maintainer thường phản hồi trong vòng 1 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
- 76/100
Hướng nghiên cứu
Bắt đầu bằng cách đọc conclude_threat_detection.sh cùng điều kiện bảo vệ và các bước cài đặt của job phát hiện; tái hiện với continue-on-error: false và không có đầu ra an toàn. Kiểm tra cách phần kết luận xử lý RUN_DETECTION: false khi bước cài đặt đã bị bỏ qua. Hoàn tất khi trong trường hợp đó, phát hiện được báo là đã bỏ qua mà không gây lỗi, trong khi detector bị thiếu vẫn gây lỗi khi dự kiến phát hiện sẽ chạy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
With safe-outputs.threat-detection.continue-on-error: false, a run in which the agent emits no safe output at all ends with a failed detection job:
ERR_SYSTEM: threat-detect binary not found on PATH
##[error]Process completed with exit code 1.
Nothing was there to analyze. The guard step says so ("Detection skipped: no agent outputs or patches to analyze"), and the run fails anyway, with a message that points at the detector install rather than at the agent.
This happens every time the agent stops before writing to outputs.jsonl. In our case the agent hit max-ai-credits (403 Maximum AI credits exceeded), so outputs.jsonl was never created, and the only failure shown on the run was the threat-detect one.
Seen on v0.89.21 and v0.91.5.
Repro
- A workflow with any safe output and:
safe-outputs: threat-detection: continue-on-error: false - Make the agent end without calling any safe-output tool. For instance, set a
max-ai-creditslow enough to stop it early, or use a prompt that ends without calling any tool,noopincluded. - Look at the
detectionjob:Check if detection needed:OUTPUT_TYPES:empty,HAS_PATCH: false, "Detection skipped: no agent outputs or patches to analyze".Install threat-detect binary: skipped.Conclude threat detection: env hasRUN_DETECTION: false,THREAT_DETECT_INSTALL_OUTCOME: skipped,DETECTION_AGENTIC_EXECUTION_OUTCOME: skipped, thenERR_SYSTEM: threat-detect binary not found on PATHand exit code 1.
Expected
When the guard skipped detection because there was nothing to analyze, the conclusion should report it as skipped, as the comment in conclude_threat_detection.sh describes, whatever continue-on-error is set to. A missing detector should only be reported as an error when detection was actually expected to run.
- Ngôn ngữ chính
- Go
- Star
- 5.4k
- Fork
- 584
- Merge trung bình
- 3 giờ 56 phút
- Pull request đã merge (30 ngày)
- 810
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không 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 github/gh-aw
-
ai-inspected
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
automation cookie
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
github/gh-aw#68990 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automated conformance safe-outputs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
goroutineresourceleak (81st linter): paren_unwrap_gap across lock/cancel/channel detection, day oneĐang mởcookie sergo
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/gh-aw#68591 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows cascade-suspected
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
area: watch bug priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
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 82/100
mariadb-operator/mariadb-operator#1962 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
eugenioenko/ttt#919 · 1 bình luận ·
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 74/100
QuantumNous/new-api#7839 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage service/costoptimizationhub
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hashicorp/terraform-provider-aws#50507 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày