Skip to content

Conversation

@friedbyalice
Copy link

@friedbyalice friedbyalice commented Nov 30, 2025

Fixes #1974

Please note this is a personal contribution, not on behalf of my employer

@meta-cla
Copy link

meta-cla bot commented Nov 30, 2025

Hi @friedbyalice!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@meta-cla
Copy link

meta-cla bot commented Nov 30, 2025

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla bot added the CLA Signed label Nov 30, 2025
let file_path = "file:" ^ filename in
{Sarifbug_j.uri= file_path; Sarifbug_j.uriBaseId= absolute_source_name}
let absolute_project_root = "file:" ^ Config.project_root in
{Sarifbug_j.uri= filename; Sarifbug_j.uriBaseId= absolute_project_root}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, uriBaseId can be set to the constant "%srcroot%" as described here. This helps when scanning repositories where we typically want the SARIF report to be the same (for the same commit) regardless of where the local checkout appears on the filesystem.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep indeed, that's one of the options I explored which also worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SARIF reports don't comply with the specification

2 participants