You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] artifactLocation.uri in SARIF output is missing a leading / #3289
When using the SARIF output type with the SARIF SAST Scans Tab extension in Azure DevOps, the failing rules that are shown under the scans tab have a broken url (Leads to a completely blank page). This seems to be caused by a missing / from the artifactLocation.uri in the generated SARIF output.
For example:
Current URL: https://dev.azure.com/sampleOrg/projectName/_git/repoName?path=path/to/file/with/issue.bicepparam&version={sha}&line=1&lineEnd=2&lineStartColumn=1
Correct URL: https://dev.azure.com/sampleOrg/projectName/_git/repoName?path=/path/to/file/with/issue.bicepparam&version={sha}&line=1&lineEnd=2&lineStartColumn=1
Not sure if there's something I should have set in the options via the ps-rule.yaml file or if this is a relatively simple bug in the sarif generator.
Thanks
Error messages
No response
Reproduction
Install the SARIF SAST Scans Tab extension in Azure DevOps if not already present.
Trigger an Azure Pipeline that runs a scan of any .bicepparam file which will output the result as a SARIF file
Ensure that the pipeline uploads the SARIF file as an artifact.
Go to the Scans tab and click on a link for a failing rule.
Activity
github-actions commentedon Mar 31, 2026
Thanks for raising your first issue, the team appreciates the time you have taken 😉
ElinoraWhite commentedon Mar 31, 2026
Thanks for reporting the issue Adam Ricket (@thecmdradama).
A few minor follow up questions:
path/tostart with a directory outside your repository? i.e.tmp/or something similar.thecmdradama commentedon Mar 31, 2026
The Pipeline is running on a Linux agent (Ubuntu 22.04 currently)
It does not. The path that's referenced in
artifactLocation.uriand the final URL starts withzones/platform/which is the valid path within the repo.Thanks for the quick reply as well.
ElinoraWhite commentedon Mar 31, 2026
Adam Ricket (@thecmdradama) great thanks let me double check a few things. This might be a implementation difference between ADO and GitHub features.
But yeah, if it's not a bug in the ADO extension vs the spec then an option can be added, but there isn't one currently.