mirror of
https://github.com/github/codeql-action.git
synced 2026-10-31 01:49:43 +00:00
Inline EnvVar.ANALYSIS_KEY in getAnalysisKey
This commit is contained in:
5
lib/setup-codeql-action.js
generated
5
lib/setup-codeql-action.js
generated
@@ -87018,15 +87018,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;
|
||||
}
|
||||
function isEnablementError(msg) {
|
||||
|
||||
Reference in New Issue
Block a user