Sam Robson
b2de4934cf
refactor: pass checkoutPath as param and fix docs for relative path semantics
2026-03-05 18:09:06 +00:00
Sam Robson
1443f5865e
chore: merge main into kaspersv/move-diff-range-absolute-path-conversion
2026-03-05 11:38:11 +00:00
Henry Mercer
675af55c60
Run some unit tests in parallel
2026-03-04 12:40:22 +01:00
Michael B. Gale
1721ce7afd
Address minor review comments
2026-03-03 11:05:37 +00:00
Michael B. Gale
b43d146e37
Do not alias types
2026-03-02 20:47:19 +00:00
Michael B. Gale
9a31859f78
Use @types/sarif
2026-03-02 18:04:11 +00:00
Michael B. Gale
2abec3f0c3
Replace most occurrences of CSRA
2026-02-17 14:55:31 +00:00
Michael B. Gale
15a3d32df0
Extend uploadPayload tests to all analysis kinds
2026-02-12 22:28:27 +00:00
Michael B. Gale
cbb92e7ff6
Type the upload payload object
2026-02-11 23:56:51 +00:00
Michael B. Gale
406bbfcef1
Update upload-lib tests for CSRA
2026-02-11 22:11:17 +00:00
Kasper Svendsen
4eb247591f
Move conversion of PR diff-range paths to absolute paths
2025-11-12 08:10:40 +01:00
Kasper Svendsen
035c1179af
upload-lib: Unit test filterAlertsByDiffRange
2025-11-12 08:10:39 +01:00
Paolo Tranquilli
610c7c68e3
Address review
2025-10-09 15:24:02 +02:00
Paolo Tranquilli
ff2fc66cc1
Simplify uploadPayload tests
2025-10-09 12:31:00 +02:00
Paolo Tranquilli
a841c540b7
Scratch uploadSpecifiedFiles tests, make uploadPayload tests instead
2025-10-09 12:18:14 +02:00
Paolo Tranquilli
621809b239
Address copilot review
2025-10-08 12:24:49 +02:00
Paolo Tranquilli
a57997f2d2
Fix test after rebase
2025-10-08 09:34:48 +02:00
Paolo Tranquilli
4489a63a9d
Add unit tests for uploadSpecifiedFiles
2025-10-08 09:34:48 +02:00
Michael B. Gale
fe0376ed1f
Add getGroupedSarifFilePaths with tests
2025-09-29 15:07:13 +01: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
Koen Vlaswinkel
a005f73253
Remove disable_combine_sarif_files feature flag
2025-07-24 11:12:32 +02:00
Koen Vlaswinkel
e30db30685
Ignore pre-release parts when comparing GHES versions
2025-07-16 11:51:53 +02: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
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
af32bc6d6f
Add test for modified validateUniqueCategory
2025-06-24 13:26:34 +01:00
Michael B. Gale
51891595a7
Add test for modified findSarifFilesInDir
2025-06-24 13:24:04 +01:00
Henry Mercer
2f70a988e7
Skip validating SARIF produced by CodeQL
2025-05-14 15:11:16 +01:00
Fotis Koutoulakis (@NlightNFotis)
b53826d56d
review-comments: remove syntax-error handling for SARIF from upload-lib
2025-04-01 15:10:16 +01:00
Fotis Koutoulakis (@NlightNFotis)
72a2b1295e
feat: classify some observed SARIF errors as InvalidSarifUploadError
2025-03-31 12:17:23 +01:00
github-actions[bot]
44e03577b2
Rebuild
2024-12-03 18:39:38 +00:00
Remco Vermeulen
642bbfc83a
Turn invalid helpUri attribute into a warning
2024-09-16 20:22:13 -07:00
Koen Vlaswinkel
931fabe1ef
Remove feature flag for combine SARIF files deprecation warning
2024-05-14 11:00:12 +02:00
Koen Vlaswinkel
725ed4139d
Add tests for shouldShowCombineSarifFilesDeprecationWarning
2024-05-02 10:20:11 +02:00
Koen Vlaswinkel
5d73b1bd71
Remove incorrect log message
2024-04-17 10:20:46 +02:00
nickfyson
d3c32a84cb
fix test to respect updated logging behaviour
2024-04-03 21:04:50 +01:00
nickfyson
6514cbb626
improve logging coverage when uploaing sarif files
2024-04-03 15:45:28 +01:00
Henry Mercer
fdea2a523d
Remove result pruning for CodeQL 2.11.2
2023-11-27 12:58:49 +00:00
Angela P Wen
b16296be30
Auto-fix linting errors
2023-07-25 10:34:21 +02:00
Andrew Eisenberg
9c5706e1a2
Avoid throwing validation error on invalid URIs
...
The recent update of jsonschema inadvertently caused extra validation of
`uri-reference` formatted properties. This change ensures that these
errors are converted to warnings.
Note that we cannot revert the change to jsonschema since the old
version does not handle `uniqueItems` correctly.
2023-05-25 10:18:12 -07:00
Angela P Wen
da583b07a7
Add workload_run_attempt to analysis upload ( #1658 )
...
* Refactor status report upload logic
Previously we had duplicated the logic to check `GITHUB_RUN_ID`. We now call the `getWorkflowRunID()` method for the status report upload method, and move the logic for the run attempt to `getWorkflowRunAttempt()`
* Add `workflow_run_attempt` to analysis payload
* Stop allowing `undefined` run IDs and attempts
Because we already throw an error if the ID or attempt aren't numbers, we don't have to allow `undefined` values into the payload.
2023-04-26 02:13:27 +00:00
Henry Mercer
39fe7aa8a1
Remove dead guard for GHES 3.0
2022-11-23 13:57:07 +00:00
Henry Mercer
b498c79130
Remove concept of Actions / runner mode
2022-11-14 16:37:48 +00:00
Edoardo Pirovano
862a512899
Prune results of Ruby query from SARIF
2022-11-04 14:57:13 +00:00
Thomas Horstmeyer
e836f97769
Detect merge base as base_sha for upload
2022-02-01 15:38:43 +00:00
Andrew Eisenberg
ab1f709732
Allow duplicate categories in the same validation step
...
A single SARIF file should be allowed to have duplicated
categories.
2022-01-13 10:35:03 -08:00