Mario Campos
0d698171d3
Move output type validators to output-cache.ts module
...
This move simplifies the consumer-side of the module. And, also, the validators should be an internal implementation detail—not the concern of those who wish to "get" a cached output.
2026-06-30 15:39:36 -05:00
Mario Campos
c2f43799c5
Refactor CommandCacheKey as a string union
2026-06-29 23:25:50 -05:00
Mario Campos
41965b0e7b
Move cache.ts to cli/output-cache.ts
...
This change should hopefully make the purpose of this module clear.
2026-06-29 22:16:21 -05:00
Mario Campos
dd7ff30205
Replace string with CommandCacheKey for better type safety
2026-06-19 15:04:22 -05:00
Mario Campos
420c97eadd
Improve documentation for cache file and command keys in CLI
2026-06-19 14:12:27 -05:00
Mario Campos
defcf1bff6
Rename optional and undefinable functions for clarity; update related schemas to use optionalOrNull
2026-06-19 13:55:56 -05:00
Mario Campos
c8e32e423d
Refactor resolveLanguages() to cache output according to CLI feature support
...
The output of `resolveLanguages()` can vary based on whether the flag `--filter-to-languages-with-queries` is included, but not all versions of the CLI support that. This makes caching a single execution problematic, so I opted to cache it based on whether it's supported. If it's supported, it's used; otherwise, it's not.
2026-06-18 14:46:44 -05:00
Mario Campos
553eef0d3f
Add error handling for undefined extractors in language resolution
2026-06-18 10:36:50 -05:00
Mario Campos
b18df17ee7
Rebased onto main; fixups were needed
2026-06-18 10:25:23 -05:00
Mario Campos
a602287f73
Refactor CLI caching with in-memory and file storage
2026-06-18 10:10:46 -05:00
Mario Campos
dc8e1e9aa0
Refactor CLI JSON handling into a dedicated runCliJson function
2026-06-18 10:05:20 -05:00
Mario Campos
889ae42672
Refactor CLI executions into helper functions
...
This provides a separation of concerns between the memoization and the execution.
2026-06-18 10:02:31 -05:00
Mario Campos
6010f85d81
Reimplement resolveExtractor() as wrapper over resolveLanguages()
...
By wrapping `resolveLanguages()`, which is memoized, we can avoid executing `codeql resolve extractor` several times over the course of an analysis.
2026-06-18 09:58:23 -05:00
Mario Campos
311292c28f
Cache the output of codeql resolve languages
...
Repeated calls to `resolveLanguages()` will only pay the performance penalty of executing `codeql resolve languages` once.
2026-06-18 09:58:20 -05:00
Henry Mercer
ddef289289
Remove one extractor per language assumption
2026-06-05 13:01:12 +01:00
Henry Mercer
72b0f9fed4
Clean up codeql.resolveLanguages
...
Only the betterjson option is now used, so remove the old version.
2026-06-05 12:50:57 +01:00
Henry Mercer
bab673d0e0
Cache CLI version information across Actions steps
2026-06-02 19:27:05 +01:00
Henry Mercer
a333d64ec4
Remove DatabaseInterpretResultsSupportsSarifRunProperty tools feature
...
This feature has been supported since CodeQL CLI v2.19.0
2026-05-12 19:26:21 +01:00
Henry Mercer
97fb30df6b
Remove ForceOverwrite tools feature
...
This feature has been supported since CodeQL CLI v2.18.0, which is below the new minimum version.
2026-05-12 19:26:20 +01:00
Henry Mercer
d122da3c9f
Bump minimum CodeQL CLI version to 2.19.4
2026-05-12 19:26:20 +01:00
Henry Mercer
01bc9be56a
Filter to code scanning only
2026-05-07 11:00:54 +01:00
Henry Mercer
55d6319f96
Match CLI version to cached overlay-base database
2026-05-06 18:01:37 +01:00
Henry Mercer
97be3af35a
Deprecate CodeQL versions 2.19.3 and earlier
2026-04-28 15:32:55 +01:00
Henry Mercer
4e8c9ce33c
Refactoring: Introduce overlay/caching.ts
2026-04-10 14:55:12 +01:00
Henry Mercer
d74701caa1
Drive-by cleanup: Always use --cache-cleanup
2026-03-11 19:31:03 +00:00
Henry Mercer
5c583bbb19
Include diagnostics in bundle
2026-02-17 15:55:02 +00:00
Henry Mercer
d1bdc0ea05
Create separate directory for overlay source code
2026-02-17 15:54:03 +00:00
Henry Mercer
f1aa4f497a
Explain why we ignore extra baseline files options
2026-01-26 18:02:58 +00:00
Henry Mercer
4918026b93
Use FF to disable baseline file coverage
2026-01-26 11:00:04 +00:00
Henry Mercer
e8c164b902
Remove unused database print-baseline
2026-01-26 11:00:03 +00:00
Henry Mercer
5ac04769eb
Rename argument
2026-01-20 13:39:43 +00:00
Henry Mercer
d32cd4ddde
Include base database OIDs when bundling database
2026-01-09 18:58:32 +00:00
Kasper Svendsen
5b7e7fcc9c
Update src/codeql.ts
...
Co-authored-by: Henry Mercer <henrymercer@github.com >
2025-12-09 09:41:33 +01:00
Kasper Svendsen
dd8914320f
CodeQL: Add resolveDatabase method
2025-12-03 13:40:24 +01:00
Henry Mercer
112cd075bd
Merge branch 'main' into henrymercer/dead-code-elimination
2025-11-19 14:56:28 +00:00
Henry Mercer
c649c5993d
Upload overlay base DB to API behind FF
2025-11-18 18:43:19 +00:00
Henry Mercer
cac5926de5
Delete unused exports
2025-11-18 18:16:54 +00:00
Michael B. Gale
5b58b8f9c5
Linter: check JSDoc parameter names exist
2025-11-09 10:26:36 +00:00
Michael B. Gale
db47d17142
Remove add-snippets input
2025-10-27 12:53:23 +00:00
Henry Mercer
3934593862
Remove analysisSummaryV2Default FF
2025-10-22 12:25:25 +01:00
Henry Mercer
bd5f49c7ca
Bump minimum version to 2.17.6
2025-10-22 12:19:35 +01:00
Henry Mercer
a6b9514fab
Wrap API configuration errors when setting up CodeQL
2025-10-20 15:01:44 +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
Henry Mercer
98abb870dc
Add configuration error for rate limited CodeQL download
2025-10-08 14:43:54 +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
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
f8fb310547
Resolve supported languages using CodeQL CLI
2025-09-05 16:17:32 +01:00
Michael B. Gale
e9fb72dd82
Move extraQueryExclusions out of AugmentationProperties
2025-09-03 12:13:58 +01:00
Michael B. Gale
ac9b91e745
Move overlay db settings from AugmentationProperties to Config
2025-09-02 18:02:12 +01:00
Michael B. Gale
c4d2772a75
Add computedConfig property to Config type
2025-09-02 18:01:49 +01:00