Skip to content

Commit

Permalink
fix: Commit messages aren't fully shell escaped
Browse files Browse the repository at this point in the history
close #164
close #162

Signed-off-by: Minsu Lee <amond@amond.net>
  • Loading branch information
amondnet committed Jun 27, 2022
1 parent cda7aa8 commit 9ef9eef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ async function vercelDeploy(ref, commit) {
...addVercelMetadata('githubRepo', context.repo.repo, providedArgs),
...addVercelMetadata('githubCommitOrg', context.repo.owner, providedArgs),
...addVercelMetadata('githubCommitRepo', context.repo.repo, providedArgs),
...addVercelMetadata('githubCommitMessage', `"${commit}"`, providedArgs),
...addVercelMetadata(
'githubCommitMessage',
// eslint-disable-next-line prefer-template
'"' + commit + '"',
providedArgs,
),
...addVercelMetadata(
'githubCommitRef',
ref.replace('refs/heads/', ''),
Expand Down

0 comments on commit 9ef9eef

Please sign in to comment.