Skip to content

Commit

Permalink
Fix command execution in pr-validation
Browse files Browse the repository at this point in the history
The github action to check for multiple commits would check the
pullrequest message for a command to disable the check.
While processing the message any commands enclosed in backticks
would be executed as shell commands.
  • Loading branch information
svenklemm committed Apr 12, 2021
1 parent 31e1a9c commit 4cd9e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# If this becomes more advanced, we might be better of using,
# e.g., Perl.
run: |
cat <<EOF | egrep -qsi '^disable-check:.*\<commit-count\>'
cat << "EOF" | egrep -qsi '^disable-check:.*\<commit-count\>'
${{ github.event.pull_request.body }}
EOF
if [[ $? -ne 0 ]]; then
Expand Down

0 comments on commit 4cd9e88

Please sign in to comment.