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:46:15 -0300
commit01c70ba14899409e86dc3f6c6bcae0afc48094e7 (patch)
treea1ac98a63395e8be8bdcf1ec2bfcd34ac8962fc8 /.github
parentc135be349ddd9fd71b15d4b20e7fc46814e4ca7c (diff)
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>
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 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"