Skip to content

Commit

Permalink
URL encode the key
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Brignull committed Apr 30, 2020
1 parent 43de3a9 commit 546d5a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 546d5a8

Please sign in to comment.