mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
Ensure uniqueness of overlay-base database cache keys
This commit is contained in:
Generated
+3
-1
@@ -91075,12 +91075,14 @@ async function uploadOverlayBaseDatabaseToCache(codeql, config, logger) {
|
||||
return true;
|
||||
}
|
||||
async function getCacheSaveKey(config, codeQlVersion, checkoutPath) {
|
||||
const runId = getWorkflowRunID();
|
||||
const attemptId = getWorkflowRunAttempt();
|
||||
const sha = await getCommitOid(checkoutPath);
|
||||
const restoreKeyPrefix = await getCacheRestoreKeyPrefix(
|
||||
config,
|
||||
codeQlVersion
|
||||
);
|
||||
return `${restoreKeyPrefix}${sha}`;
|
||||
return `${restoreKeyPrefix}${runId}-${attemptId}-${sha}`;
|
||||
}
|
||||
async function getCacheRestoreKeyPrefix(config, codeQlVersion) {
|
||||
const languages = [...config.languages].sort().join("_");
|
||||
|
||||
Reference in New Issue
Block a user