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 <[email protected]>
  • Loading branch information
amondnet committed Jun 27, 2022
1 parent cda7aa8 commit 9b20fa7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions dist/index.js

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

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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"email": "[email protected]",
"url": "https://amond.dev"
},
"version": "25.0.0",
"version": "25.0.1",
"main": "index.js",
"scripts": {
"lint": "eslint index.js",
Expand Down

0 comments on commit 9b20fa7

Please sign in to comment.