URL encode the key
This commit is contained in:
parent
43de3a9949
commit
546d5a8843
2 changed files with 2 additions and 2 deletions
2
lib/util.js
generated
2
lib/util.js
generated
|
|
@ -185,7 +185,7 @@ async function getAnalysisKey() {
|
||||||
}
|
}
|
||||||
const workflowPath = await getWorkflowPath();
|
const workflowPath = await getWorkflowPath();
|
||||||
const jobName = getRequiredEnvParam('GITHUB_JOB');
|
const jobName = getRequiredEnvParam('GITHUB_JOB');
|
||||||
analysisKey = workflowPath + ' - ' + jobName;
|
analysisKey = encodeURI(workflowPath) + ':' + encodeURI(jobName);
|
||||||
core.exportVariable(sharedEnv.CODEQL_ACTION_ANALYSIS_KEY, analysisKey);
|
core.exportVariable(sharedEnv.CODEQL_ACTION_ANALYSIS_KEY, analysisKey);
|
||||||
return analysisKey;
|
return analysisKey;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@ export async function getAnalysisKey(): Promise<string> {
|
||||||
const workflowPath = await getWorkflowPath();
|
const workflowPath = await getWorkflowPath();
|
||||||
const jobName = getRequiredEnvParam('GITHUB_JOB');
|
const jobName = getRequiredEnvParam('GITHUB_JOB');
|
||||||
|
|
||||||
analysisKey = workflowPath + ' - ' + jobName;
|
analysisKey = encodeURI(workflowPath) + ':' + encodeURI(jobName);
|
||||||
core.exportVariable(sharedEnv.CODEQL_ACTION_ANALYSIS_KEY, analysisKey);
|
core.exportVariable(sharedEnv.CODEQL_ACTION_ANALYSIS_KEY, analysisKey);
|
||||||
return analysisKey;
|
return analysisKey;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue