mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Validate CLI memory-backed cached objects against CLI path
This commit is contained in:
5
lib/entry-points.js
generated
5
lib/entry-points.js
generated
@@ -145838,7 +145838,10 @@ function cacheCommandOutput(key, cmd, output) {
|
||||
function getCachedCommandOutput(key, cmd) {
|
||||
const memoized = inMemoryCache.get(key);
|
||||
if (memoized !== void 0) {
|
||||
return memoized.output;
|
||||
if (cmd === void 0 || memoized.cmd === cmd) {
|
||||
return memoized.output;
|
||||
}
|
||||
inMemoryCache.delete(key);
|
||||
}
|
||||
const entry = readCommandCacheFile()[key];
|
||||
if (!isObject(entry) || !isString(entry.cmd) || cmd !== void 0 && entry.cmd !== cmd || !commandCacheValidators[key](entry.output)) {
|
||||
|
||||
Reference in New Issue
Block a user