summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2025-11-06 14:24:28 +0100
committerNatalia <124304+nessita@users.noreply.github.com>2025-11-10 15:53:29 -0300
commitfea599d2a288112d566b798a48615dcd1c6e1b87 (patch)
tree0a5974451ae972ded1567ccc4d9431e43e55ace6 /.github
parentaca28b50d6c55eb07f971ab2805d72d12e0e487e (diff)
[5.2.x] Fixed unsafe variable interpolation in GitHub Action workflow.
Thank you Davide Netti for the report and initial patch. Co-authored-by: Davide Netti <davide.netti4@gmail.com> Backport of 01c70ba14899409e86dc3f6c6bcae0afc48094e7 from main.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check_commit_messages.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/check_commit_messages.yml b/.github/workflows/check_commit_messages.yml
index ee9536f482..8fc5dd5cdf 100644
--- a/.github/workflows/check_commit_messages.yml
+++ b/.github/workflows/check_commit_messages.yml
@@ -24,8 +24,9 @@ jobs:
echo "prefix=[$VERSION]" >> $GITHUB_OUTPUT
- name: Check PR title prefix
+ env:
+ TITLE: ${{ github.event.pull_request.title }}
run: |
- TITLE="${{ github.event.pull_request.title }}"
PREFIX="${{ steps.vars.outputs.prefix }}"
if [[ "$TITLE" != "$PREFIX"* ]]; then
echo "❌ PR title must start with the required prefix: $PREFIX"