Mario Campos
d4b99ad098
Merge branch 'main' into mario-campos/cache-cli-resolve-langs
...
# Conflicts:
# lib/entry-points.js
# src/codeql.ts
# src/environment.ts
# src/status-report.ts
2026-07-09 15:03:56 -05:00
Mario Campos
5110948a58
Revert runCliJson implementation
...
It's been forked off into #3981
2026-07-09 14:05:47 -05:00
Michael B. Gale
0c7580ae89
Merge pull request #3956 from github/update-supported-enterprise-server-versions
...
Update supported GitHub Enterprise Server versions
2026-07-09 14:59:18 +00:00
Michael B. Gale
37ae669b89
Update deprecation date
2026-07-02 11:04:03 +01:00
Mario Campos
d5b8046386
Add JSDoc comment to runCliJson
2026-07-01 14:20:36 -05:00
Mario Campos
a8958a9883
Keep the JSON exception message consistent
2026-07-01 14:20:36 -05:00
Mario Campos
7f4f27e7e6
Revert change to resolveExtractor
...
This is secondary work that will follow from the main purpose of this PR.
2026-07-01 09:41:56 -05:00
Mario Campos
7d1c6e90aa
Include codeql path in runCliJson error
2026-06-30 23:13:36 -05:00
Mario Campos
6cdc6063c0
Create wrapper runCliJson
2026-06-30 23:07:02 -05:00
Mario Campos
da149812f1
Switch CommandCacheKey back to an enum
...
The code reads better/simpler as an `enum`.
2026-06-30 16:10:41 -05:00
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
Michael B. Gale
68ec727966
Update constants
2026-06-15 17:43:18 +02: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