fix(github-format): preserve path#1748
Open
reubenwong97 wants to merge 2 commits intozizmorcore:mainfrom
Open
Conversation
e34c981 to
256a3be
Compare
Contributor
Author
|
Hi @woodruffw , Can you help to take a look at this? Thanks! |
| // gracefully. | ||
| let filepath = primary.symbolic.key.sarif_path(); | ||
| let filepath = Utf8Path::new(primary.symbolic.key.presentation_path()); | ||
| let filepath = filepath.strip_prefix(".").unwrap_or(filepath); |
Contributor
There was a problem hiding this comment.
Perhaps this should be moved to a higher level so that plain does not have the same issues:
🌈 zizmor v1.23.1
INFO audit: zizmor: 🌈 completed ./.github/workflows/ci.yml
warning[excessive-permissions]: overly broad permissions
--> ./.github/workflows/ci.yml:9:3
Contributor
Author
There was a problem hiding this comment.
Thanks for the suggestion!
@woodruffw should we go ahead with this? If so would it be an amendment to the behavior of presentation_path?
Contributor
Author
|
Hi @woodruffw , Could you take a look at the discussion here when you have some time? Thanks! |
Member
|
Yeah, I'll try and get to this in the next day or so. |
Contributor
Author
|
Thanks @crazy-max , this makes sense to me. I'll prepare a change and get @woodruffw 's input. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Pre-submission checks
Please check these boxes:
Mandatory: This PR corresponds to an issue [BUG]: Part of the path is missing when displayed in
GitHubformat #1745 .Having read the AI policy, I hereby disclose the use of an LLM or other
AI coding assistant in the creation of this PR. PRs will not be rejected
for using AI tools, but will be rejected for undisclosed use or
use that violates the policy.
If a checkbox is not applicable, you can leave it unchecked.
Summary
For the github format, uses the presentation path with prefix stripping instead of the sarif path.
Test Plan
Added snapshot integration tests for the scenarios described in the issue.
Closes #1745