Henry Mercer
c64c4070cc
Handle HTTP errors with httpStatusCode property
2025-10-20 14:38:02 +01:00
Chuan-kai Lin
8185897cad
Rename withTimeout() to waitForResultWithTimeLimit()
...
The name withTimeout() gives the impression that it would limit the
execution of the promise to the given time bound. But that is not the
case: it is only the _waiting_ that is limited, and the promise would
keep running beyond the time bound.
This commit renames withTimeout() to waitForResultWithTimeLimit() so
that developers are more likely to understand the actual behavior of
this function.
2025-09-18 08:27:36 -07:00
Henry Mercer
377976a96e
Improve type of trapCaches now Language is non-exhaustive
2025-08-05 18:09:37 +01:00
Chuan-kai Lin
fb771764cb
Extract generateCodeScanningConfig()
2025-07-10 14:14:46 -07:00
Chuan-kai Lin
b0cd76b9fb
Move Git functions to git-utils.ts
2024-12-10 08:44:11 -08:00
Michael B. Gale
21e6a62b15
Use common getTotalCacheSize for TRAP caching
2024-10-29 12:10:33 +00:00
Henry Mercer
dd7307d603
Refactoring: Simplify retrieving error message
2024-09-16 22:38:35 +02:00
Angela P Wen
edfef2739a
Further standardize doc URL messages
...
Always say "see $URL for more information" without parentheses.
2024-07-23 14:18:04 +02:00
Angela P Wen
7ad1090882
Refactor all doc URLs into their own enum
2024-07-23 14:17:34 +02:00
Henry Mercer
fdba1f907e
Improve log message when there's nothing to clean up
2024-05-23 16:27:50 +01:00
Henry Mercer
f7f71927cf
Add unit test for cleanup
2024-05-23 16:27:50 +01:00
Henry Mercer
6ccd5631d8
Put TRAP cache cleanup behind a feature flag
2024-05-23 16:27:50 +01:00
Henry Mercer
4f2b1826e9
Add telemetry for TRAP cache cleanup
2024-05-23 16:27:50 +01:00
Henry Mercer
59af9fc5ab
Add specific error for lacking actions:write permission
2024-05-23 16:27:50 +01:00
Henry Mercer
610e72285f
Clean up old TRAP caches
2024-05-23 16:27:50 +01:00
Henry Mercer
1bea17f717
Log key and ref for which we're retrieving caches
2024-05-23 16:27:50 +01:00
Henry Mercer
0b4214972e
Invoke cleanup in analyze Action
2024-05-23 16:27:50 +01:00
Henry Mercer
4fd6c0d4f1
Look at ref rather than default branch
...
Since we'll only cleanup when running on the default branch
2024-05-23 16:27:50 +01:00
Henry Mercer
087f0b04c6
Restrict TRAP cache cleanup to analyzed language
2024-05-21 22:28:59 +01:00
Henry Mercer
cc96c825ba
List matching Actions caches
2024-05-21 22:27:49 +01:00
Michael B. Gale
74b46628c3
Support features key in version JSON output
2023-10-04 11:28:28 +01:00
Henry Mercer
1d5eed8d40
Remove deprecated functionality
2023-09-27 16:16:13 +01:00
Angela P Wen
b16296be30
Auto-fix linting errors
2023-07-25 10:34:21 +02:00
Henry Mercer
bac7c32ff7
Resolve the final dependency cycle!
2023-07-19 17:37:43 +01:00
Henry Mercer
5658fd1df2
Fix dependency cycle between trap-caching and init
2023-07-19 17:30:33 +01:00
Henry Mercer
bf419682de
Remove unused CODESCANNING_EVENT_NAME environment variable
2023-05-31 15:37:11 +01:00
Henry Mercer
10695e6a20
Fix linter errors
2023-01-18 21:00:05 +00:00
Edoardo Pirovano
bfc56625b0
TRAP Caching: Re-introduce workaround for download timeout
2022-11-16 15:49:52 +00:00
Edoardo Pirovano
adb28963c0
Further update to reflect a conversation with @henrymercer
2022-10-11 16:59:48 +01:00
Edoardo Pirovano
c0641ea1d3
TRAP Caching: Add timeouts to upload/download operations
2022-09-30 13:18:46 +01:00
Edoardo Pirovano
b98b2def63
TRAP Caching: Skip uploading of small caches
2022-09-23 15:22:31 +01:00
David Verdeguer
add14375d5
Add workflowEventName
2022-09-07 00:05:40 +02:00
Edoardo Pirovano
299b77421b
TRAP Caching: Be tolerant to not finding the extractor
2022-09-05 10:38:21 +01:00
Edoardo Pirovano
1e5376ae5f
TRAP Caching: Unset missing cache rather than setting to undefined
2022-08-23 15:39:05 +01:00
Edoardo Pirovano
016a5e3bae
Use util.promisify instead of manually constructing promise
2022-08-16 14:42:13 +01:00
Edoardo Pirovano
b29194f0ac
Address review comments from @henrymercer
2022-08-16 13:30:49 +01:00
Edoardo Pirovano
4139682b64
Add telemetry for TRAP caching
2022-08-16 11:54:31 +01:00
Edoardo Pirovano
d8adbe91f2
Fix cache key for TRAP caching
2022-08-16 10:20:17 +01:00
Edoardo Pirovano
6df93613d7
Address review comments from @henrymercer
2022-08-09 18:37:22 +01:00
Edoardo Pirovano
8f867dcb21
Introduce TRAP caching
2022-08-05 17:48:05 +01:00