Skip to content

Commit 165cda6

Browse files
[Internal] Fix processing of quoted titles (#3790)
## Changes Fix processing of `quoted` titles. Follows GitHub recommendations https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#good-practices-for-mitigating-script-injection-attacks ## Tests This PR
1 parent abdb417 commit 165cda6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/message.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ jobs:
2020
fetch-depth: 0
2121

2222
- name: Validate Tag
23+
env:
24+
TITLE: ${{ github.event.pull_request.title }}
2325
run: |
24-
TAG=$(echo ${{ github.event.pull_request.title }} | sed -ne 's/\[\(.*\)\].*/\1/p')
26+
TAG=$(echo "$TITLE" | sed -ne 's/\[\(.*\)\].*/\1/p')
2527
if grep -q "tag: \"\[$TAG\]\"" .codegen/changelog_config.yml; then
2628
echo "Valid tag found: [$TAG]"
2729
else

0 commit comments

Comments
 (0)