Skip to content

Commit e5ad069

Browse files
remove CODEQL_ACTION_ANALYSIS_KEY
1 parent 5b35de6 commit e5ad069

6 files changed

Lines changed: 9 additions & 8 deletions

File tree

lib/shared-environment.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/shared-environment.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/util.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/util.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/shared-environment.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export const CODEQL_ACTION_ANALYSIS_KEY = 'CODEQL_ACTION_ANALYSIS_KEY';
21
export const ODASA_TRACER_CONFIGURATION = 'ODASA_TRACER_CONFIGURATION';
32
export const CODEQL_ACTION_SCANNED_LANGUAGES = 'CODEQL_ACTION_SCANNED_LANGUAGES';
43
export const CODEQL_ACTION_TRACED_LANGUAGES = 'CODEQL_ACTION_TRACED_LANGUAGES';

src/util.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ async function getWorkflowPath(): Promise<string> {
144144
* the github API, but after that the result will be cached.
145145
*/
146146
export async function getAnalysisKey(): Promise<string> {
147-
let analysisKey = process.env[sharedEnv.CODEQL_ACTION_ANALYSIS_KEY];
147+
const analysisKeyEnvVar = 'CODEQL_ACTION_ANALYSIS_KEY';
148+
149+
let analysisKey = process.env[analysisKeyEnvVar];
148150
if (analysisKey !== undefined) {
149151
return analysisKey;
150152
}
@@ -153,7 +155,7 @@ export async function getAnalysisKey(): Promise<string> {
153155
const jobName = getRequiredEnvParam('GITHUB_JOB');
154156

155157
analysisKey = workflowPath + ':' + jobName;
156-
core.exportVariable(sharedEnv.CODEQL_ACTION_ANALYSIS_KEY, analysisKey);
158+
core.exportVariable(analysisKeyEnvVar, analysisKey);
157159
return analysisKey;
158160
}
159161

0 commit comments

Comments
 (0)