Inline EnvVar.ANALYSIS_KEY in getAnalysisKey

This commit is contained in:
Michael B. Gale
2026-01-21 12:52:24 +00:00
parent 417a8c2176
commit d5b3d42fd4
10 changed files with 20 additions and 31 deletions
+2 -3
View File
@@ -87556,15 +87556,14 @@ async function getWorkflowRelativePath() {
return workflowResponse.data.path;
}
async function getAnalysisKey() {
const analysisKeyEnvVar = "CODEQL_ACTION_ANALYSIS_KEY" /* ANALYSIS_KEY */;
let analysisKey = process.env[analysisKeyEnvVar];
let analysisKey = process.env["CODEQL_ACTION_ANALYSIS_KEY" /* ANALYSIS_KEY */];
if (analysisKey !== void 0) {
return analysisKey;
}
const workflowPath = await getWorkflowRelativePath();
const jobName = getRequiredEnvParam("GITHUB_JOB");
analysisKey = `${workflowPath}:${jobName}`;
core5.exportVariable(analysisKeyEnvVar, analysisKey);
core5.exportVariable("CODEQL_ACTION_ANALYSIS_KEY" /* ANALYSIS_KEY */, analysisKey);
return analysisKey;
}
async function getAutomationID() {