Hotfix upload-sarif not uploading non-.sarif files by mbg · Pull Request #3160 · github/codeql-action (original) (raw)
Pull Request Overview
This PR fixes a bug where the upload-sarif action was not uploading non-.sarif files for CodeScanning analysis. The fix modifies the file filtering logic to allow CodeScanning analysis to upload files that don't match the default SARIF predicate.
- Updates the conditional logic in
findAndUploadto handle non-SARIF files for CodeScanning - Adds specific handling for CodeScanning analysis kind when the file doesn't match standard SARIF extensions
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/upload-sarif-action.ts | Updates TypeScript source to fix file filtering logic for CodeScanning analysis |
| lib/upload-sarif-action.js | Contains the compiled JavaScript equivalent of the TypeScript changes |