Skip to content

Safe-outputs add-comment strips < and > from markdown code blocks #18310

@ViktorHofer

Description

@ViktorHofer

The safe-outputs sanitizer replaces < and > with ( and ) in the posted comment body, even inside markdown code fences. This breaks XML/HTML code examples — critical for workflows that analyze MSBuild/XML-based build systems.

Example

The agent produces:

<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>

But the posted comment contains:

(AppendTargetFrameworkToOutputPath)false(/AppendTargetFrameworkToOutputPath)

Repro

ViktorHofer/msbuild-s1#4 (comment)

Workflow: MSBuild Build Failure Analyzer run

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions