mirror of
https://github.com/github/codeql-action.git
synced 2026-04-30 02:40:12 +00:00
Inline EnvVar.ANALYSIS_KEY in getAnalysisKey
This commit is contained in:
Generated
+2
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user