GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Perform SARIF post-processing independently of upload by mbg · Pull Request #3222 · github/codeql-action Conversation
|
| File | Description |
|---|---|
| src/upload-sarif.ts | Main logic change: splits processing and uploading, adds conditional upload based on uploadKind |
| src/upload-lib.ts | Refactors uploadSpecifiedFiles into postProcessSarifFiles, writeProcessedFiles, and uploadProcessedFiles |
| src/upload-sarif.test.ts | Updates tests to mock new function signatures and adds tests for new behavior |
| src/analyze-action.ts | Updates to pass uploadKind and post-process-output parameters to uploadSarif |
| src/upload-sarif-action.ts | Updates to pass uploadKind parameter (hardcoded to "always") |
| analyze/action.yml | Adds documentation for new post-process-output input parameter |
| pr-checks/checks/quality-queries.yml | Adds test case for the new post-process-output functionality |
| lib/*.js | Generated JavaScript files mirroring TypeScript changes |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for splitting into individual commits.
I only have some wording comments, none are hard blockers.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| description: Whether to upload the resulting CodeQL database | ||
| required: false | ||
| default: "true" | ||
| post-process-output: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is the order of these input declarations chosen strongly based on discoverability for the user? If not, then I'd like this to be right next to the output input declared near the top in the name of coherence.
Second, and I'm sorry if this naming has been discussed at length in related PRs earlier: post-process-output reads like a boolean toggle, not a path. post-processed-output sounds more like a path. Additionally we always do the post-processing regardless of wether we save them to disk..
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
post-processed-outputsounds more like a path.
I agree this would be a better name.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Second, and I'm sorry if this naming has been discussed at length in related PRs earlier:
post-process-outputreads like a boolean toggle, not a path. post-processed-output sounds more like a path. Additionally we always do the post-processing regardless of wether we save them to disk..
Ironically, I think this kind of bad naming is actually something I complained about on @redsun82's PR previously, which he then changed to something better. I agree that this isn't a good name and have changed it to processed-sarif-path for now. That makes it consistent with other path inputs (other than output here). I don't think think that post-processed-output is really any better than post-process-output.
Is the order of these input declarations chosen strongly based on discoverability for the user? If not, then I'd like this to be right next to the output input declared near the top in the name of coherence.
Generally, I think the order is roughly based on how relevant the input is to a user. (See e.g. that we have the ones that are automatically populated or used internally only at the bottom.)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Given the classification as high risk, have you considered manually comparing CodeQL and post-processed SARIF output before/after this PR to make sure there are no changes?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| description: Whether to upload the resulting CodeQL database | ||
| required: false | ||
| default: "true" | ||
| post-process-output: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
post-processed-outputsounds more like a path.
I agree this would be a better name.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
a457f8e to
8ff870a
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.