Mario Campos
895ffe7eb5
Front-load caching and rear-load saving to disk
...
This implementation saves CPU and I/O by not trying to write to the file on every set-cache.
2026-06-19 17:45:48 -05:00
Mario Campos
805b59092e
Remove duplicate key check in cacheCommandOutput and related tests
...
This key-check is unnecessary because this function is only ever called if the key does NOT exist in the cache already. In that case, why check again?
2026-06-19 16:29:52 -05:00
Mario Campos
d1bd5ec7b0
Add logging for command cache file read/write failures
2026-06-19 16:07:35 -05:00
Mario Campos
94b12602ac
Refactor cache file reading to check for existence before attempting to read
2026-06-19 15:41:47 -05:00
Mario Campos
126166c212
Rename CacheEntry to CommandCacheEntry for consistency
2026-06-19 15:07:56 -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
587fcb33c7
Refactor isVersionInfo() to use json` module
2026-06-18 09:58:23 -05:00
Mario Campos
445107e23a
Validate numbers, objects, and undefinables in the json module
...
This commit adds a `number` validator`, an `object` validator, an `isNumber` predicate, and `undefinable()` to test optional-but-not-null properties.
2026-06-18 09:58:23 -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
ee70cd5210
Merge pull request #3916 from github/mbg/ts/update-ghes-versions
...
Convert `update-supported-enterprise-server-versions` script to TypeScript
2026-06-18 14:11:07 +00:00
Michael B. Gale
516447a110
Merge pull request #3909 from github/mbg/ff/remove/StartProxyRemoveUnusedRegistries
...
Default to `StartProxyRemoveUnusedRegistries` behaviour
2026-06-18 14:10:42 +00:00
Michael B. Gale
839edd2b07
Merge branch 'main' into mbg/ts/update-ghes-versions
2026-06-18 14:34:04 +01:00
Michael B. Gale
b3b14d6671
Merge branch 'main' into mbg/ff/remove/StartProxyRemoveUnusedRegistries
2026-06-18 14:29:55 +01:00
Michael B. Gale
0bae987e7d
Merge pull request #3964 from github/dependabot/npm_and_yarn/npm-minor-dc44a34bad
...
Bump the npm-minor group across 1 directory with 3 updates
2026-06-17 18:55:15 +00:00
Michael B. Gale
3b64eeeb9f
Merge pull request #3965 from github/dependabot/github_actions/dot-github/workflows/actions-minor-ea9362b8e5
...
Bump the actions-minor group across 1 directory with 2 updates
2026-06-17 18:43:54 +00:00
Michael B. Gale
49e524587f
Merge pull request #3963 from github/mbg/repo-prop/config-file
...
Add repository property for configuration files
2026-06-17 18:12:54 +00:00
github-actions[bot]
18e8398a57
Rebuild
2026-06-17 17:59:57 +00:00
github-actions[bot]
80de837984
Rebuild
2026-06-17 17:58:05 +00:00
dependabot[bot]
03dfa6fb02
Bump the actions-minor group across 1 directory with 2 updates
...
Bumps the actions-minor group with 2 updates in the /.github/workflows directory: [actions/setup-java](https://github.com/actions/setup-java ) and [ruby/setup-ruby](https://github.com/ruby/setup-ruby ).
Updates `actions/setup-java` from 5.2.0 to 5.3.0
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](be666c2fcd...ad2b38190b )
Updates `ruby/setup-ruby` from 1.310.0 to 1.312.0
- [Release notes](https://github.com/ruby/setup-ruby/releases )
- [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb )
- [Commits](afeafc3d1a...12fd324f1d )
---
updated-dependencies:
- dependency-name: actions/setup-java
dependency-version: 5.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: actions-minor
- dependency-name: ruby/setup-ruby
dependency-version: 1.312.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: actions-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-17 17:57:53 +00:00
dependabot[bot]
3187067e93
Bump the npm-minor group across 1 directory with 3 updates
...
Bumps the npm-minor group with 3 updates in the / directory: [semver](https://github.com/npm/node-semver ), [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) and [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint ).
Updates `semver` from 7.8.1 to 7.8.4
- [Release notes](https://github.com/npm/node-semver/releases )
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md )
- [Commits](https://github.com/npm/node-semver/compare/v7.8.1...v7.8.4 )
Updates `@types/node` from 20.19.41 to 20.19.42
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `typescript-eslint` from 8.60.1 to 8.61.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.61.0/packages/typescript-eslint )
---
updated-dependencies:
- dependency-name: semver
dependency-version: 7.8.4
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: npm-minor
- dependency-name: "@types/node"
dependency-version: 20.19.42
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-minor
- dependency-name: typescript-eslint
dependency-version: 8.61.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-17 17:55:32 +00:00
Michael B. Gale
52077a03d9
Ignore empty repository property
2026-06-17 15:18:14 +01:00
Michael B. Gale
0337b99474
Merge pull request #3961 from github/dependabot/npm_and_yarn/tar-7.5.16
...
Bump tar from 7.5.15 to 7.5.16
2026-06-16 22:00:36 +00:00
Michael B. Gale
b2cc23e25d
Log input choice
2026-06-16 14:19:37 +01:00
Michael B. Gale
82036913c8
Accept repository property as fallback
2026-06-16 12:28:17 +02:00
Michael B. Gale
ae7c3ea645
Add getConfigFileInput function
2026-06-16 12:21:33 +02:00
Michael B. Gale
a0276b7dc4
Add initial ActionsEnv abstraction
2026-06-16 12:19:30 +02:00
Michael B. Gale
f57d3726c3
Add github-codeql-config-file property
2026-06-16 12:02:08 +02:00
dependabot[bot]
6f850b5022
Bump tar from 7.5.15 to 7.5.16
...
Bumps [tar](https://github.com/isaacs/node-tar ) from 7.5.15 to 7.5.16.
- [Release notes](https://github.com/isaacs/node-tar/releases )
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md )
- [Commits](https://github.com/isaacs/node-tar/compare/v7.5.15...v7.5.16 )
---
updated-dependencies:
- dependency-name: tar
dependency-version: 7.5.16
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-15 22:01:42 +00:00
Henry Mercer
c73f0fa0f1
Merge pull request #3958 from github/dependabot/npm_and_yarn/esbuild-0.28.1
...
Bump esbuild from 0.28.0 to 0.28.1
2026-06-15 15:07:40 +00:00
github-actions[bot]
98dfd09d4a
Rebuild
2026-06-13 06:43:46 +00:00
dependabot[bot]
c8f0aa4c67
Bump esbuild from 0.28.0 to 0.28.1
...
Bumps [esbuild](https://github.com/evanw/esbuild ) from 0.28.0 to 0.28.1.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.28.0...v0.28.1 )
---
updated-dependencies:
- dependency-name: esbuild
dependency-version: 0.28.1
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-13 06:41:55 +00:00
Michael B. Gale
f3f1edbedf
Merge pull request #3957 from github/dependabot/npm_and_yarn/npm-minor-94506b9a28
...
Bump the npm-minor group across 1 directory with 4 updates
2026-06-13 06:29:24 +00:00
github-actions[bot]
9f2d709a33
Rebuild
2026-06-10 17:57:20 +00:00
dependabot[bot]
5f5ed8735c
Bump the npm-minor group across 1 directory with 4 updates
...
Bumps the npm-minor group with 4 updates in the / directory: [js-yaml](https://github.com/nodeca/js-yaml ), [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript ), [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint ) and [tsx](https://github.com/privatenumber/tsx ).
Updates `js-yaml` from 4.1.1 to 4.2.0
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nodeca/js-yaml/commits )
Updates `eslint-import-resolver-typescript` from 4.4.4 to 4.4.5
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases )
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v4.4.4...v4.4.5 )
Updates `typescript-eslint` from 8.60.0 to 8.60.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.60.1/packages/typescript-eslint )
Updates `tsx` from 4.22.3 to 4.22.4
- [Release notes](https://github.com/privatenumber/tsx/releases )
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs )
- [Commits](https://github.com/privatenumber/tsx/compare/v4.22.3...v4.22.4 )
---
updated-dependencies:
- dependency-name: js-yaml
dependency-version: 4.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: npm-minor
- dependency-name: eslint-import-resolver-typescript
dependency-version: 4.4.5
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-minor
- dependency-name: typescript-eslint
dependency-version: 8.60.1
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-minor
- dependency-name: tsx
dependency-version: 4.22.4
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-10 17:55:22 +00:00
Henry Mercer
eda5730a8b
Merge pull request #3955 from github/henrymercer/fix-nested-log-group
...
Fix broken log grouping due to nested log group
2026-06-05 13:53:30 +00:00
Henry Mercer
e263f3a83a
Merge pull request #3954 from github/henrymercer/tidy-resolve-languages
...
Clean up `codeql.resolveLanguages`
2026-06-05 13:53:24 +00:00
Henry Mercer
ddef289289
Remove one extractor per language assumption
2026-06-05 13:01:12 +01:00
Henry Mercer
99576d59b9
Fix broken log grouping due to nested log group
2026-06-05 12:57:29 +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
9fc351a8ac
Merge pull request #3953 from github/henrymercer/local-action
...
Use local `upload-sarif` Action in PR checks job
2026-06-05 08:53:57 +00:00
Henry Mercer
72f4abcfcc
Use local upload-sarif Action in PR checks job
2026-06-04 16:45:01 +01:00