Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Threat detection fails the run when it was skipped and `continue-on-error: false`

Cerrado Apto para principiantes
#66,872 0 comentarios 1 reacción 2 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@pelikhan ya está trabajando en esto.

Desde el 11/10/2026.

  • #67810 de @copilot-swe-agent — fusionado

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
76/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, go, yaml
Área
ci-cd, devtools

Línea de trabajo

Empieza leyendo conclude_threat_detection.sh y las condiciones y pasos de instalación del trabajo de detección; reproduce el caso con continue-on-error: false y sin salidas seguras. Comprueba cómo gestiona la conclusión RUN_DETECTION: false cuando se omitió la instalación. La tarea estará terminada cuando la detección se informe como omitida sin fallar en ese caso, mientras que un detector ausente siga generando un error cuando se esperaba que se ejecutara la detección.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

ai-inspected community

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

  1. A workflow with any safe output and:
    safe-outputs:
      threat-detection:
        continue-on-error: false
    
  2. Make the agent end without calling any safe-output tool. For instance, set a max-ai-credits low enough to stop it early, or use a prompt that ends without calling any tool, noop included.
  3. Look at the detection job:
    • 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 has RUN_DETECTION: false, THREAT_DETECT_INSTALL_OUTCOME: skipped, DETECTION_AGENTIC_EXECUTION_OUTCOME: skipped, then ERR_SYSTEM: threat-detect binary not found on PATH and 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.

Lenguaje dominante
Go
Estrellas
5.4k
Forks
576
Merge medio
7 h 40 min
PR fusionados (30 d)
806

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/gh-aw

Todos los issues de github/gh-aw

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.