Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01c70ba

Browse files
MarkusHdavidenetti
authored andcommitted
Fixed unsafe variable interpolation in GitHub Action workflow.
Thank you Davide Netti for the report and initial patch. Co-authored-by: Davide Netti <[email protected]>
1 parent c135be3 commit 01c70ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/check_commit_messages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ jobs:
2424
echo "prefix=[$VERSION]" >> $GITHUB_OUTPUT
2525
2626
- name: Check PR title prefix
27+
env:
28+
TITLE: ${{ github.event.pull_request.title }}
2729
run: |
28-
TITLE="${{ github.event.pull_request.title }}"
2930
PREFIX="${{ steps.vars.outputs.prefix }}"
3031
if [[ "$TITLE" != "$PREFIX"* ]]; then
3132
echo "❌ PR title must start with the required prefix: $PREFIX"

0 commit comments

Comments
 (0)