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
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
dc1166cacb
Move tests for functions now in db-config
2025-09-19 17:16:41 +01:00
Michael B. Gale
ddc6d540f0
Move AugmentationProperties out of config-utils
2025-09-19 17:08:17 +01:00
Michael B. Gale
6222edff53
Move error messages from config-utils to their own file
2025-09-19 17:08:09 +01:00
Michael B. Gale
3305d21389
Move UserConfig to its own file
2025-09-19 17:08:00 +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
Nick Rolfe
4014b75309
Only enable JAVA dependency minimisation when caching is enabled
2025-09-15 15:11:28 +01:00
Nick Rolfe
185266a022
Merge pull request #3107 from github/nickrolfe/minimize-jars
...
Add feature flag to roll out JAR minimization in the Java extractor
2025-09-12 13:09:42 +01:00
Michael B. Gale
dc9a47dceb
Merge pull request #3110 from github/mbg/proxy/fetch-from-release
...
Fetch proxy binaries from `defaults.json` release
2025-09-12 12:38:15 +01:00
Nick Rolfe
0abf548bb3
Add feature flag to roll out JAR minimization in the Java extractor
2025-09-12 12:09:34 +01:00
Michael B. Gale
e2636d2e4f
Change "current release" to "linked release"
2025-09-12 11:15:03 +01:00
Henry Mercer
df1fe23118
Merge pull request #3083 from github/henrymercer/resolve-languages-default-queries
...
Resolve supported languages using CodeQL CLI
2025-09-12 10:12:15 +01:00
Chuan-kai Lin
5c30ae46c1
Stop saving config in initConfig()
2025-09-11 12:31:29 -07:00
Michael B. Gale
9df23425dc
Search release pointed at by defaults.json for registry proxy artifact
2025-09-11 18:56:19 +01:00
Chuan-kai Lin
4e2e64a92a
init-action: save updated config
...
This commit updates the init action to save the config again at the end
of run(), so that config updates in run() are correctly propagated to
the analyze action.
2025-09-11 08:07:50 -07:00
Michael B. Gale
ffcbb4c0c1
Move UPDATEJOB_PROXY constants to start-proxy.ts
2025-09-11 15:34:29 +01:00
Michael B. Gale
1479235f5d
Merge pull request #3100 from github/mbg/config-version
...
Store and check action version in `Config`
2025-09-11 11:56:05 +01:00
Michael B. Gale
0d058cdc59
Merge pull request #3099 from github/mbg/validate-action-version-in-workflow
...
Validate workflow to check that all `codeql-action` versions are the same
2025-09-11 11:53:14 +01:00
Michael B. Gale
e49458befe
Fix runInterpretResultsFor using the wrong AnalysisConfig for category fix
2025-09-10 16:14:19 +01:00
Kasper Svendsen
f374a62c8b
Merge pull request #3098 from github/kaspersv/increase-overlay-base-size-limit
...
Overlay: Increase size limit for cached overlay base database
2025-09-10 15:01:08 +02:00
Michael B. Gale
0487de31f2
Update src/config-utils.test.ts
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-10 13:47:47 +01:00
Michael B. Gale
754f2e184f
Simplify step.uses condition
2025-09-10 13:35:39 +01:00
Michael B. Gale
4f56152a48
Store and check action version in Config
2025-09-10 13:33:17 +01:00
Michael B. Gale
bb98ff4838
Validate workflow to check that all codeql-action versions are the same
2025-09-10 13:02:28 +01:00
Kasper Svendsen
8a84a62542
Overlay: Increase size limit for cached overlay base database
2025-09-10 12:30:56 +02: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
copilot-swe-agent[bot]
2a4630c7f1
Remove --intra-layer-parallelism flag from CodeQL CLI commands
...
Co-authored-by: henrymercer <14129055+henrymercer@users.noreply.github.com >
2025-09-09 16:53:28 +00:00
Henry Mercer
ed9d73bc6f
Alphabetically order ToolsFeature
2025-09-09 14:42:39 +01:00
Michael B. Gale
0a56aada02
Merge pull request #3064 from github/mbg/cq/allow-cq-only-analysis
...
Allow Code Quality only analysis
2025-09-08 16:13:19 +01:00
Chuan-kai Lin
1c6bc389a1
Merge pull request #3080 from github/cklin/overlay-db-automation-id
...
Overlay: add automation ID to cache key
2025-09-08 06:33:55 -07:00
Michael B. Gale
e045f5eeb4
Fix hasActionsWorkflows throwing if workflows folder doesn't exist
2025-09-05 21:11:33 +01:00
Michael B. Gale
ab82675d3b
Add test to check hasActionsWorkflows doesn't throw
2025-09-05 21:10:17 +01:00
Chuan-kai Lin
0a3d60d97c
Overlay: clarify save vs restore keys
2025-09-05 11:37:03 -07:00