Skip to content

Commit 36075a4

Browse files
committed
Deprecate TRAP cache cleanup
1 parent 57ec7e1 commit 36075a4

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
44

55
## [UNRELEASED]
66

7+
- The undocumented TRAP cache cleanup feature that could be enabled using the `CODEQL_ACTION_CLEANUP_TRAP_CACHES` environment variable is deprecated and will be removed in May 2026. If you are affected by this, we recommend disabling TRAP caching by passing the `trap-caching: false` input to the `init` Action. [#3795](https://github.com/github/codeql-action/pull/3795)
78
- The Git version 2.36.0 requirement for improved incremental analysis now only applies to repositories that contain submodules. [#3789](https://github.com/github/codeql-action/pull/3789)
89
- Python analysis on GHES no longer extracts the standard library, relying instead on models of the standard library. This should result in significantly faster extraction and analysis times, while the effect on alerts should be minimal. [#3794](https://github.com/github/codeql-action/pull/3794)
910

lib/analyze-action.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/trap-caching.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ export async function cleanupTrapCaches(
185185
trap_cache_cleanup_skipped_because: "feature disabled",
186186
};
187187
}
188+
logger.warning(
189+
"TRAP cache cleanup is deprecated and will be removed in May 2026. " +
190+
"We recommend instead disabling TRAP caching by passing the `trap-caching: false` input to the `init` Action.",
191+
);
188192
if (!(await gitUtils.isAnalyzingDefaultBranch())) {
189193
return {
190194
trap_cache_cleanup_skipped_because: "not analyzing default branch",

0 commit comments

Comments
 (0)