-
Notifications
You must be signed in to change notification settings - Fork 60k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing originalUriBaseIds property from the SARIF specification #35043
Conversation
Fix invalid SARIF specification, missing originalUriBaseIds from the format
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
Automatically generated comment ℹ️This comment is automatically generated and will be overwritten every time changes are committed to this branch. The table contains an overview of files in the Content directory changesYou may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request.
fpt: Free, Pro, Team |
@marcandre-larochelle-bell Thanks so much for opening a PR! I'll get this triaged for review ✨ |
Thanks for opening a pull request! We've triaged this issue for technical review by a subject matter expert 👀 |
This comment was marked as spam.
This comment was marked as spam.
@nguyenalex836 I think a bot / fake account is trying to sneak-in some participation on this MR (check the empty comment above) |
@marcandre-larochelle-bell They've been blocked 💛 |
@marcandre-larochelle-bell Thank you for your patience while our SME team reviewed! They shared the following upon review
Per our SMEs input, let us know if you'd be willing to update your PR to add this as optional guidance for SARIF producers 💛 |
@nguyenalex836 I'm ok with switching it to an optional guidance for SARIF producers, how should I go about it? Should I keep the example inside the SARIF format and add a kind of "note" at the bottom? |
Hi @marcandre-larochelle-bell, would you be open to creating a short example under https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#sarif-output-file-examples? This would be similar to https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#example-with-minimum-required-properties, containing the relevant fields you're proposing to add. It would also need some small explanatory text beforehand, indicating that it's optional. |
Hi @subatoi, yes definitely, should I duplicate the https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#example-with-minimum-required-properties and add the relevant field (the one in the current PR) with a explanatory text or I can add an explanatory text to the existing https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#example-with-minimum-required-properties (but with the added field)? |
Hi 👋 Let's go with this option 😄
I can help with an appropriate title once we have the section set up. Thank you! |
Hi, I attempted a draft of the new section with the field and note as per the comments. Thanks in advance! |
Thank you for your help ✨ ! I'll be able to review this next week, and I will circle back to you then. We are in any case in a deploy freeze right now. |
This PR has been automatically closed because there has been no response to to our request for more information from the original author. Please reach out if you have the information we requested, or open a new issue to describing your changes. Then we can begin the review process. |
It was mistakenly closed, I am awaiting review |
@subatoi can you re-open it? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your patience, @marcandre-larochelle-bell! I'm happy with the wording, but I'm not sure about the link you've used being characterised as Microsoft documentation, and I wonder if the best thing to do would just be to delete it instead, so I've left a suggestion accordingly.
Once we resolve that point, I'll be happy to get this merged (cc @nguyenalex836 if I'm not around and you want to go ahead)
...ode-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning.md
Outdated
Show resolved
Hide resolved
…ning/sarif-support-for-code-scanning.md Co-authored-by: Ben Ahmady <[email protected]>
@subatoi I'm ok with your suggestion, committed it! Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, I'll get this merged now. Thank you again very much for your help!
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues ⚡ |
The SARIF format specified in the documentation is missing a field allowing resolution of the references for SARIF consumers (which is invalid):
SARIF Producer file scheme instructions (see Step 6 of when the URI is split)
And related to the originalUriBaseIds the property:
Why:
As per the SARIF specification:
Multiple vendors are following GitHub's documentation here and omitting the originalUriBaseIds during their implementation, making it impossible to perform the above mentioned relative references resolution for other SARIF consumers. This is to correct this missing property.
What's being changed (if available, include any code snippets, screenshots, or gifs):
Added the property
originalUriBaseIds
with the example data from the SARIF specification.Check off the following:
I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).
data
directory.For content changes, I have completed the self-review checklist.