Threat detection fails the run when it was skipped and `continue-on-error: false`
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 76/100
Direzione di ricerca
Inizia leggendo conclude_threat_detection.sh e le condizioni e i passaggi di installazione del job di rilevamento; riproduci il caso con continue-on-error: false e senza output sicuri. Verifica come la conclusione gestisce RUN_DETECTION: false quando l’installazione è stata ignorata. Il lavoro è concluso quando il rilevamento viene segnalato come ignorato senza fallire in quel caso, mentre un detector mancante continua a generare un errore quando era previsto che il rilevamento venisse eseguito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 5.4k
- Fork
- 576
- Merge medio
- 7h 21m
- PR unite (30g)
- 816
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/gh-aw
-
automation awf compiler specifications
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
ai-inspected
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
automation models
Difficoltà 3/5 Mezza giornata Idoneità per principianti 22/100
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows
Difficoltà 4/5 3-5 giorni Idoneità per principianti 12/100
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows
Difficoltà 4/5 1-2 giorni Idoneità per principianti 12/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di github/gh-aw
Issue simili
-
docs: namespaceRegexes example teaches prefix matching, but regexes are matched as a substringApertatriage/pending-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
external-secrets/external-secrets#7117 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ENTERPILOT/GoModel#1183 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Edwin-metcalf/MetCode#16 ·
-
Action Required: Fix Renovate ConfigurationForse già presa @thompson-tomo l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
open-telemetry/opentelemetry-collector#16170 ·
I maintainer di solito rispondono entro 1 giorno
-
Buffer.writeRTX drops the RTCP returned by calc, so NACKs for other lost packets are never sentAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno