mirror of
https://github.com/django/django.git
synced 2025-11-17 10:43:25 +00:00
[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:
parent
607d9d01af
commit
da4f87dfdc
1 changed files with 2 additions and 1 deletions
3
.github/workflows/check_commit_messages.yml
vendored
3
.github/workflows/check_commit_messages.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue