Chuan-kai Lin
ef45800e5c
Add getMostRecentActionsCacheEntry()
2025-09-26 15:15:07 -07:00
Chuan-kai Lin
c35d1b3eb4
Extract getCacheWorkflowKeyPrefix()
2025-09-26 15:15:07 -07:00
Chuan-kai Lin
eb5531f129
Add overlay-base database cache key tests
2025-09-26 15:15:07 -07:00
Chuan-kai Lin
c3d80a1a64
Compute preliminary overlay database mode
2025-09-26 15:13:51 -07:00
Chuan-kai Lin
57444ccc63
Add getPreliminaryOverlayDatabaseMode()
2025-09-26 15:13:51 -07:00
Chuan-kai Lin
25b6845641
Move support code into loadUserConfig()
2025-09-26 15:13:51 -07:00
Chuan-kai Lin
c079287f80
Call amendInputConfigFile() early
...
This commit extracts into amendInputConfigFile() the code that processes
configInput, and moves the call from initConfig() into init-action.ts.
2025-09-26 15:13:51 -07:00
Chuan-kai Lin
fcd4657460
Compute InitConfigInputs early
2025-09-26 15:13:50 -07:00
Chuan-kai Lin
9ebca4c820
Move codeql out of InitConfigInputs
2025-09-26 15:13:50 -07:00
Chuan-kai Lin
046ce56f57
Overlay: choose database mode without CodeQL CLI
...
This commit makes getOverlayDatabaseMode() accept undefined as arguments
for codeql and languages.
2025-09-26 15:13:50 -07:00
Chuan-kai Lin
f6247bb37b
Overlay: check features without CodeQL CLI
...
This commit changes isOverlayAnalysisFeatureEnabled() so that it uses
the overlay-language-aliases.json file to resolve language aliases
instead of relying on the CodeQL CLI.
2025-09-26 15:13:50 -07:00
Chuan-kai Lin
6e69a927f6
Remove Feature.OverlayAnalysis minimumVersion
...
getOverlayDatabaseMode() already performs the same version check, so we
can remove minimumVersion from Feature.OverlayAnalysis. Doing so allows
the action to perform feature checks without CodeQL CLI.
2025-09-26 15:13:50 -07:00
Michael B. Gale
0b7fc56648
Fix upload-sarif not uploading non-.sarif files
2025-09-26 17:47:59 +01:00
Henry Mercer
b1d32cf356
Merge branch 'main' into henrymercer/fix-log-message
2025-09-25 13:06:54 +01:00
Michael B. Gale
6ccec2ac14
Remove url from log messages
2025-09-24 18:54:49 +01:00
Michael B. Gale
4e820a4ca4
Apply review feedback
2025-09-24 15:50:19 +01:00
Michael B. Gale
d43f46c39c
Set Authorization header for downloading update-job-proxy
2025-09-24 12:41:54 +01:00
Michael B. Gale
efcf614b5d
Refactor assembling Authorization header value into its own function
2025-09-24 12:40:15 +01:00
Henry Mercer
50fc7e9236
Fix tools: linked log message
2025-09-23 14:53:29 +02:00
Michael B. Gale
eb05da905d
Specify Accept header for toolcache.downloadTool
2025-09-23 13:27:06 +01:00
github-actions[bot]
2bbfe979c3
Update default bundle to codeql-bundle-v2.23.1
2025-09-23 13:27:06 +01:00
Kasper Svendsen
e2f4bf692b
Bump minimum CLI version for overlay analysis
2025-09-23 12:08:15 +02:00
Michael B. Gale
665891b4f2
Merge pull request #3126 from github/mbg/add/properties-api
...
Add support for the repository properties API
2025-09-23 10:17:52 +01:00
Michael B. Gale
5a4aa83242
Always log when combining queries is disabled in the repo properties
2025-09-23 09:49:29 +01:00
Michael B. Gale
54bbe822cc
Always log when queries are configured in the repository properties
2025-09-23 09:44:52 +01:00
Michael B. Gale
4178e15b0a
Only disable loadPropertiesFromApi on GHES
2025-09-23 09:41:53 +01:00
Michael B. Gale
0a75581cde
Check that we are on dotcom
2025-09-23 09:22:07 +01:00
Michael B. Gale
7f73f8c235
Add unit tests for properties module
2025-09-23 09:16:28 +01:00
Michael B. Gale
07920e84f8
Fix using keys instead of values
...
Also add `logger.debug` call with keys from API response
2025-09-23 09:12:16 +01:00
Michael B. Gale
40262b1861
Add getRepositoryProperties to api-client, for easier mocking
2025-09-23 09:11:10 +01:00
Michael B. Gale
b4f966a31a
Add FF to control whether to fetch repository properties
2025-09-22 20:26:56 +01:00
Michael B. Gale
05310c6f55
Ignore repository property query config if CQ-only analysis
2025-09-22 16:32:28 +01:00
Michael B. Gale
889d482c54
Add logging to combineQueries
2025-09-22 16:32:26 +01:00
Henry Mercer
2b07444ab3
Merge pull request #3130 from github/henrymercer/request-nightly
...
Support requesting latest nightly with `tools: nightly`
2025-09-22 14:59:43 +01:00
Henry Mercer
4901f549de
Lint
2025-09-22 14:01:09 +02:00
Henry Mercer
e2e36b17af
Add helper function for reserved tools values
2025-09-22 13:59:40 +02:00
Michael B. Gale
6117099fe1
Merge pull request #3127 from github/mbg/refactor/db-config-and-errors
...
Refactor database configuration from `config-utils` into its own file
2025-09-22 12:23:54 +01:00
Henry Mercer
a25c57cebe
Wrap API call to provide better error message
2025-09-22 13:20:16 +02:00
Henry Mercer
39be66afb0
Add log message
2025-09-22 12:54:42 +02:00
Henry Mercer
0f4529ee05
Enable requesting latest nightly with "tools: nightly"
2025-09-22 12:49:35 +02:00
Michael B. Gale
c7eb488f8f
Add tests
2025-09-20 14:09:08 +01:00
Michael B. Gale
d14a2122fd
Include repo property queries in combineQueries
2025-09-20 14:09:08 +01:00
Michael B. Gale
1bfb67dae0
Refactor combining queries into its own function
2025-09-20 14:09:08 +01:00
Michael B. Gale
781a65ae32
Use appropriate error message in parseQueriesFromInput for repo property input
2025-09-20 14:09:08 +01:00
Michael B. Gale
ed216a06d2
Include queries from repo properties in AugmentationProperties
2025-09-20 14:09:07 +01:00
Michael B. Gale
6150aff57f
Add and use QuerySpec type
2025-09-20 14:09:07 +01:00
Michael B. Gale
3b00d03019
Load repository properties and store them in the Config
2025-09-20 14:09:07 +01:00
Michael B. Gale
4f9b2f7f06
Add initial client for repository properties
2025-09-20 14:09:06 +01:00
Michael B. Gale
0337c4c06e
Merge pull request #3123 from github/mbg/fix/upload-sarif-cq-only
2025-09-19 18:48:48 +01:00
Chuan-kai Lin
80273e2bc1
Overlay: use restoreCache() timeout
...
This commit changes overlay-base database download to pass the
segmentTimeoutInMs option to restoreCache(), so that restoreCache()
itself can properly abort slow downloads.
The waitForResultWithTimeLimit() wrapper around restoreCache() remains
as a second line of defense, but with a higher 10-minute time limit, to
guard against cache restore hangs outside segment downloads.
2025-09-19 09:40:09 -07:00