mirror of
https://github.com/github/codeql-action
synced 2026-12-01 13:49:37 +08:00
URL encode the key
This commit is contained in:
1 parent
43de3a9949
commit
546d5a8843
2 files changed
+2
-2
No files matched your search
Generated
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
+1
-1
@@ -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