diff options
| author | Markus Holtermann <info@markusholtermann.eu> | 2025-11-06 14:24:28 +0100 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2025-11-10 15:52:44 -0300 |
| commit | edacefdf2aea43137a1cf195c685f96fc9f09a56 (patch) | |
| tree | b90cf871d1f8855288345dd889f990d0f290b959 /.github/workflows/check_commit_messages.yml | |
| parent | 37ab85dd8d3a494c99f7c4b6882e619ff63864da (diff) | |
[6.0.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/workflows/check_commit_messages.yml')
| -rw-r--r-- | .github/workflows/check_commit_messages.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/check_commit_messages.yml b/.github/workflows/check_commit_messages.yml index 701d6f0584..1a6d6d1958 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" |
