mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
URL encode the key
This commit is contained in:
2
lib/util.js
generated
2
lib/util.js
generated
@@ -185,7 +185,7 @@ async function getAnalysisKey() {
|
||||
}
|
||||
const workflowPath = await getWorkflowPath();
|
||||
const jobName = getRequiredEnvParam('GITHUB_JOB');
|
||||
analysisKey = workflowPath + ' - ' + jobName;
|
||||
analysisKey = encodeURI(workflowPath) + ':' + encodeURI(jobName);
|
||||
core.exportVariable(sharedEnv.CODEQL_ACTION_ANALYSIS_KEY, analysisKey);
|
||||
return analysisKey;
|
||||
}
|
||||
|
||||
@@ -193,7 +193,7 @@ export async function getAnalysisKey(): Promise<string> {
|
||||
const workflowPath = await getWorkflowPath();
|
||||
const jobName = getRequiredEnvParam('GITHUB_JOB');
|
||||
|
||||
analysisKey = workflowPath + ' - ' + jobName;
|
||||
analysisKey = encodeURI(workflowPath) + ':' + encodeURI(jobName);
|
||||
core.exportVariable(sharedEnv.CODEQL_ACTION_ANALYSIS_KEY, analysisKey);
|
||||
return analysisKey;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user