Use folded `description: >-` instead of `|` so WORKFLOW_DESCRIPTION reaches threat detection as one line
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 65/100
- Issue-Typ
- Refactoring
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github-actions, javascript
- Bereich
- ci-cd
Rechercherichtung
Beginne mit den Workflow-Quellen, die description: | verwenden, etwa issue-triage.md, und dem Schlüssel description in deren Frontmatter. Lies nach, wie WORKFLOW_DESCRIPTION in setup_threat_detection.cjs befüllt wird, und den Punkt in threat_detection.md. Fertig ist es, wenn die Beschreibungen als Literalblöcke auf >- umgestellt sind, die Workflows mit gh aw compile neu kompiliert wurden und der Threat-Detection-Prompt die Beschreibung als eine Zeile anzeigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 1.1k
- Forks
- 163
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus githubnext/agentics
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
githubnext/agentics#420 ·
-
agentic-workflows automated documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 1/100
githubnext/agentics#419 ·
-
FrontendOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 1/100
githubnext/agentics#418 ·
-
[aw] Detection RunsOffenagentic-workflows
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 8/100
githubnext/agentics#415 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
githubnext/agentics#412 ·
Alle Issues in githubnext/agentics
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
bad-antics/lateralus-lang#1489 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 69/100
anderspitman/awesome-tunneling#330 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
scikit-hep/coffea#1668 ·