Skip to content

Commit

Permalink
... and fix a shell injection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Jan 19, 2024
1 parent c13ae1a commit f647468
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pull-request-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ jobs:
submodules: false

- name: Verify that postgres/ was not changed unintentionally
env:
PR_TITLE: ${{ github.event.pull_request.title }}
shell: bash
run: |
required_prefix="Update bundled PostgreSQL"
title="${{ github.event.pull_request.title }}"
if [[ $title == $required_prefix* ]]; then
if [[ "$PR_TITLE" == $required_prefix* ]]; then
exit 0
fi
Expand Down

0 comments on commit f647468

Please sign in to comment.