Use folded `description: >-` instead of `|` so WORKFLOW_DESCRIPTION reaches threat detection as one line
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 65/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- github-actions, javascript
- Área
- ci-cd
Línea de trabajo
Empieza con las fuentes de workflow que usan description: |, como issue-triage.md, y con la clave description de su frontmatter. Lee cómo se rellena WORKFLOW_DESCRIPTION en setup_threat_detection.cjs y el punto de threat_detection.md. Está terminado cuando las descripciones de bloque literal se cambian a >-, los workflows se recompilan con gh aw compile y el prompt de detección de amenazas muestra la descripción en una sola línea.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Most workflows here write their frontmatter description as a literal block (description: |): 20 of them, against 3 that use > and the rest that use a plain string. The descriptions are prose wrapped at about 80 columns, so | keeps that source wrapping as real newlines in the value. Switching them to >- (folded, no trailing newline) would give the sentence as written.
Where the description ends up
gh aw compile copies description into two places in the lock file:
-
The header comment at the top of
*.lock.yml. -
WORKFLOW_DESCRIPTION, an env var on the threat-detection job.setup_threat_detection.cjssubstitutes it into the detector's prompt, where the template puts it inside a bullet:- Workflow name: {WORKFLOW_NAME} - Workflow description: {WORKFLOW_DESCRIPTION} - Full workflow instructions and context in the prompt file
The second one is what the description is for at runtime: it tells the detector what the workflow is meant to do, so it can judge whether the agent's output fits.
What | does to it
With issue-triage.md as it is today, the compiled value is:
WORKFLOW_DESCRIPTION: "Triages new and reopened issues by assessing completeness, setting issue type\nand priority labels, finding duplicates, and posting a concise maintainer-facing\nreport with actionable next steps."
so the detector receives:
- Workflow description: Triages new and reopened issues by assessing completeness, setting issue type
and priority labels, finding duplicates, and posting a concise maintainer-facing
report with actionable next steps.
The line breaks come from the editor's wrap column, not from the meaning, and they break the bullet the template sets up. A model will most likely still read it correctly, so this is a tidiness fix, not a bug. But the value is going into a prompt, and >- gives exactly the one-line string the template expects:
- Workflow description: Triages new and reopened issues by assessing completeness, setting issue type and priority labels, finding duplicates, and posting a concise maintainer-facing report with actionable next steps.
Cost
The source .md looks the same: same indentation, same wrapping, one changed indicator. When compiled with gh-aw v0.89.21, the only other lock-file changes are frontmatter_hash and the header comment, which becomes one long line instead of three wrapped ones. Nobody needs to read that comment closely, since the .md is right there.
I made this change to a copy of issue-triage.md in my own repo: shbernal/pptx-ts#276.
Suggestion
Change description: | to description: >- in the workflows that use it and recompile. The three that use > could become >- too, which drops the trailing newline (the compiler already trims it, so in practice they produce the same output). If you'd take a PR for this, I'm happy to send one.
- Lenguaje dominante
- Python
- Estrellas
- 1.1k
- Forks
- 163
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de githubnext/agentics
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
githubnext/agentics#420 ·
-
agentic-workflows automated documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 1/100
githubnext/agentics#419 ·
-
FrontendAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 1/100
githubnext/agentics#418 ·
-
[aw] Detection RunsAbiertoagentic-workflows
Dificultad 2/5 Menos de una hora Aptitud para principiantes 8/100
githubnext/agentics#415 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
githubnext/agentics#412 ·
Todos los issues de githubnext/agentics
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
bad-antics/lateralus-lang#1489 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 69/100
anderspitman/awesome-tunneling#330 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
scikit-hep/coffea#1668 ·