Skip to content

bugfix: sarif: add working directory to invocation - #621

Merged
woodruffw merged 24 commits into
mainfrom
ww/invocation-cwd
Mar 23, 2025
Merged

bugfix: sarif: add working directory to invocation#621
woodruffw merged 24 commits into
mainfrom
ww/invocation-cwd

Conversation

@woodruffw

@woodruffw woodruffw commented Mar 22, 2025

Copy link
Copy Markdown
Member

Fixes #604.

This performs the fix by partially reverting #572 -- the "presentation" path is still used in formats like the "plain" (cargo-style) output, but the SARIF format now uses a sarif_path helper that removes the input prefix (even when that input prefix is something relative that GitHub should be handling correctly).

To test this, I've added a new test-sarif workflow that gets triggered by the test-sarif-presentation label -- when a PR is labeled as such, the workflow runs and uses a custom category to test any SARIF changes made.

I don't have a good way to test this yet -- my initial thought was to add some kind of issue_comment trigger so that I could do something like /sariftest, but I don't really like that. Another option would be a pull_request with the labeled sub-event. Either way, the goal would be to run a separate workflow (or job) that performs the SARIF steps for testing purposes.

Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw woodruffw added the bugfix Fixes a known bug label Mar 22, 2025
@woodruffw woodruffw self-assigned this Mar 22, 2025
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
@github-advanced-security

Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
This reverts commit 40c6224.
Signed-off-by: William Woodruff <william@yossarian.net>
This reverts commit c5ee083.
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
@github-actions

Copy link
Copy Markdown
Contributor

Signed-off-by: William Woodruff <william@yossarian.net>
@github-actions

Copy link
Copy Markdown
Contributor

Signed-off-by: William Woodruff <william@yossarian.net>
@github-actions

Copy link
Copy Markdown
Contributor

Signed-off-by: William Woodruff <william@yossarian.net>
@github-actions

Copy link
Copy Markdown
Contributor

See #622.

Signed-off-by: William Woodruff <william@yossarian.net>
@github-actions

Copy link
Copy Markdown
Contributor

@woodruffw
woodruffw merged commit fcedd86 into main Mar 23, 2025
@woodruffw
woodruffw deleted the ww/invocation-cwd branch March 23, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: SARIF presentation on GH is broken (again)

2 participants