[5.1.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 01c70ba148 from main.
This commit is contained in:
Markus Holtermann 2025-11-06 14:24:28 +01:00 committed by Natalia
parent 607d9d01af
commit da4f87dfdc

View file

@ -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"