Henry Mercer
c64c4070cc
Handle HTTP errors with httpStatusCode property
2025-10-20 14:38:02 +01:00
Michael B. Gale
a512fe0868
Gate tools: toolcache behind FF
...
Mainly to allow us to disable it, if needed.
2025-10-10 13:49:06 +01:00
Paolo Tranquilli
a841c540b7
Scratch uploadSpecifiedFiles tests, make uploadPayload tests instead
2025-10-09 12:18:14 +02:00
Paolo Tranquilli
df65651d4f
Merge branch 'main' into redsun82/skip-sarif-upload
2025-10-07 17:17:13 +02:00
Paolo Tranquilli
1b09eb4ccc
Address review
2025-10-07 17:17:06 +02:00
Paolo Tranquilli
86b2ad6646
Remove unneeded comment
2025-10-07 10:36:45 +02:00
Paolo Tranquilli
00a6e13cbf
Tweak SARIF skipping logs
2025-10-06 17:03:29 +02:00
Paolo Tranquilli
25c8db918a
Revert "Specify reason for skipping SARIF upload in logs"
...
This reverts commit 680b07003d .
2025-10-06 16:59:45 +02:00
Paolo Tranquilli
680b07003d
Specify reason for skipping SARIF upload in logs
2025-10-06 15:39:29 +02:00
Michael B. Gale
22aba57acf
Include analysis kind in payloadSaveFile path in uploadPayload
2025-10-06 14:30:30 +01:00
Paolo Tranquilli
e0b9da7b0a
Introduce CODEQL_ACTION_SKIP_SARIF_UPLOAD
...
This triggers a subset of the behavior of `CODEQL_ACTION_TEST_MODE`,
specifically just skipping the SARIF upload step. This is required for
our internal testing where we want the SARIF file (via
`CODEQL_ACTION_DUMP_SARIF_DIR`) but don't want to actually upload it,
but we don't want the rest of the behaviour of `CODEQL_ACTION_TEST_MODE`
that is specific for `codeql-action` own CI checks.
2025-10-06 14:38:32 +02:00
Michael B. Gale
b8c496644d
Rename variables in getGroupedSarifFilePaths
2025-09-30 12:05:59 +01:00
Michael B. Gale
ad086e4d90
Use path.extname for some extension checks
2025-09-30 11:55:04 +01:00
Michael B. Gale
93711d3d89
Print a warning when there are sarifFiles in getGroupedSarifFilePaths that don't belong to an analysis kind
2025-09-29 15:07:16 +01:00
Michael B. Gale
056fb86575
Call fixCategory in uploadSpecifiedFiles
...
Since `fixCategory` is now part of `AnalysisConfig`, we don't have to remember to do it at the call site for `uploadSpecifiedFiles` or `uploadFiles` anymore.
2025-09-29 15:07:16 +01:00
Michael B. Gale
fe0376ed1f
Add getGroupedSarifFilePaths with tests
2025-09-29 15:07:13 +01:00
Paolo Tranquilli
4c534612bf
Tweak sarif dump log
2025-09-10 07:52:59 +02:00
Paolo Tranquilli
dae3742b0a
Dump soon to be uploaded SARIF on request
...
This introduces a new internal environment variable flag
(`CODEQL_ACTION_SARIF_DUMP_DIR`) that, when set to `true`, causes the
SARIF file that will be uploaded to be dumped to the specified
directory. The filename will be `upload.sarif` or `upload.quality.sarif`
depending on the upload target.
2025-09-10 07:46:05 +02:00
Michael B. Gale
51d74ac81c
Remove default arguments from uploadSpecifiedFiles and validateUniqueCategory
2025-09-04 11:44:36 +01:00
Michael B. Gale
01627081ff
Rename UploadTarget to AnalysisConfig
2025-09-04 11:39:18 +01:00
Michael B. Gale
ca7dd4ad38
Move UploadTarget definitions to analyses.ts
2025-09-04 11:38:53 +01:00
Henry Mercer
943116bc89
Use url.pathToFileURL instead of file-url
2025-08-29 19:17:34 +01:00
Henry Mercer
5848d111cd
Bump log visibility for failed analysis upload
...
Make it more obvious that the SARIF file for the unsuccessful execution was successfully uploaded.
2025-08-15 17:57:13 +01:00
Henry Mercer
1afa0e7463
Cleanup extract to toolcache feature flag
2025-08-08 11:26:14 +01:00
Henry Mercer
ea05bf27b6
Use more explicit checks on .length for readability
2025-08-05 17:55:50 +01:00
Koen Vlaswinkel
a005f73253
Remove disable_combine_sarif_files feature flag
2025-07-24 11:12:32 +02:00
Koen Vlaswinkel
5a29823d01
Merge remote-tracking branch 'origin/main' into koesie10/disable-combine-single-file
2025-07-23 14:03:16 +02:00
Koen Vlaswinkel
287d421cf3
Disable combining runs within a single file
2025-07-23 13:51:13 +02:00
Michael B. Gale
43afe6ec0b
Treat processing error for multiple runs with the same category as configuration error
...
This will result in it being reported as a user error rather than a failure
2025-07-23 12:48:44 +01:00
Koen Vlaswinkel
48ce740f61
Update combining SARIF runs changelog post URL
2025-07-22 11:51:12 +02:00
Koen Vlaswinkel
e30db30685
Ignore pre-release parts when comparing GHES versions
2025-07-16 11:51:53 +02:00
Arthur Baars
15605b194f
Make eslint happy
2025-07-15 07:31:22 +00:00
Arthur Baars
ca53360d04
Fix tests
2025-07-15 07:25:49 +00:00
Koen Vlaswinkel
59d67fc4bf
Fix parsing of GHES pre-release versions
2025-07-14 11:25:20 +02:00
Koen Vlaswinkel
aafbeb29bc
Unconditionally disable combining SARIF files for GHES 3.18
2025-07-04 15:24:36 +02:00
Koen Vlaswinkel
612df8d91c
Remove support for combining SARIF runs with non-unique categories
2025-07-01 15:20:28 +02:00
Michael B. Gale
65d1e45f0b
Rename SARIF_UPLOAD_ENDPOINT members
2025-06-27 13:45:14 +01:00
Michael B. Gale
10a3e4b17d
Fix formatting
2025-06-27 12:32:56 +01:00
Michael B. Gale
ad6046ff97
Avoid default arguments with historical values
2025-06-26 13:51:08 +01:00
Michael B. Gale
08955dbc0d
Move .sarif predicates into UploadTarget instances and rename
2025-06-26 11:43:36 +01:00
Michael B. Gale
71dd63398f
Rename SARIF_UPLOAD_TARGET
2025-06-26 11:38:45 +01:00
Michael B. Gale
2c76207fa4
Upload .quality.sarif files to CQ service in upload-sarif action
2025-06-25 13:43:39 +01:00
Michael B. Gale
86f47e8b74
Add some more comments
2025-06-24 13:59:46 +01:00
Michael B. Gale
51891595a7
Add test for modified findSarifFilesInDir
2025-06-24 13:24:04 +01:00
Michael B. Gale
6abacdb184
Fix getSarifFilePaths not using right filter
2025-06-23 18:19:43 +01:00
Michael B. Gale
f1834221f2
Allow the same category once for each type of upload
2025-06-23 18:19:43 +01:00
Michael B. Gale
45b3bec064
Upload quality SARIFs to CQ endpoint
2025-06-23 18:19:42 +01:00
Michael B. Gale
22444a650f
Add ability to use different filters in findSarifFilesInDir
2025-06-23 18:19:42 +01:00
Henry Mercer
15f19ac220
Improve docstring
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-05-14 15:21:38 +01:00
Henry Mercer
2f70a988e7
Skip validating SARIF produced by CodeQL
2025-05-14 15:11:16 +01:00