code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#2330 Emit valid SARIF URIs for AL code analysis paths containing spaces

ProcessALCodeAnalysisLogs now properly URI-encodes file paths with spaces in SARIF output to comply with URI standards and prevent upload warnings.

Pull request · merged into main on 2026-07-27 by aholstrup1 · 4 files (+97 -3), 2 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Added ConvertTo-SarifArtifactUri function to encode path segments while preserving forward slashes
  • Spaces in file paths are converted to %20 in SARIF artifact URIs
  • De-duplication logic still uses raw path names, ensuring semantics are unchanged
  • Eliminates thousands of ‘not a valid URI’ warnings from SARIF uploads
  • Behaviour changes for users or extensions.

AL objects touched

  • Actions/ProcessALCodeAnalysisLogs/ProcessALCodeAnalysisLogs.ps1: modified, not in the BC? snapshot
  • Actions/ProcessALCodeAnalysisLogs/ProcessALCodeAnalysisLogs.psm1: modified, not in the BC? snapshot

Context

  • Systems: development, platform

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).