Skip to content

Footer 'related runs' link leaks as raw markdown due to unencoded double-quote in search URL #52269

Description

@theletterf

Description

The [⊙](url) link in the gh-aw-generated footer does not render as a hyperlink in GitHub Markdown. Instead, it appears as raw markdown text.

Example: elastic/docs-content#7906 (comment by TriageBot)

Rendered output:

> Generated by [Gh Aw Issue Auto Triage](https://github.com/elastic/docs-eng-team/actions/runs/31582206823) for #742 · gpt50mini · 4.34 AIC · ⊕ 1.62 AIC · ⊞ 26.6K · [⊙](https://github.com/search?q=repo%3Aelastic%2Fdocs-eng-team+is%3Aissue+"gh-aw-workflow-call-id%3Aelastic%2Fdocs-eng-team%2Fgh-aw-issue-auto-triage%22 & type=issues)

The last [⊙](url) renders as literal text instead of a clickable link.

Root cause

The search URL in the "related runs" link contains a literal, unencoded double-quote " as the opening delimiter of the phrase search, while the closing double-quote is properly percent-encoded as %22:

...+is%3Aissue+"gh-aw-workflow-call-id%3A...%22 & type=issues
             ↑ literal "          ↑ encoded %22

CommonMark's inline link parser allows an optional title after the URL, delimited by ". When it encounters the unencoded " inside the parenthesised URL, it interprets the remainder as a title attribute. Because the title never closes cleanly, the entire link fails to parse and falls back to raw text.

Fix

Encode the opening double-quote as %22 consistently in the search URL builder inside process_safe_outputs.cjs (bundled via github/gh-aw-actions/setup). The resulting URL should be:

...+is%3Aissue+%22gh-aw-workflow-call-id%3A...%22&type=issues

Affected version

gh-aw-actions/setup v0.86.1 (GH_AW_INFO_VERSION: "1.0.78", GH_AW_INFO_AWF_VERSION: "v0.27.44")

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions