Skip to content

Commit e00250d

Browse files
Potential fix for pull request finding 'CodeQL / Code injection'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 02052b3 commit e00250d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/label-sync.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
steps:
2424
- name: Extract issue number from PR
2525
id: extract-issue
26+
env:
27+
BODY: ${{ github.event.pull_request.body }}
28+
TITLE: ${{ github.event.pull_request.title }}
2629
run: |
27-
BODY='${{ github.event.pull_request.body }}'
28-
TITLE='${{ github.event.pull_request.title }}'
29-
3030
ISSUE=$(echo "$BODY $TITLE" | \
3131
grep -oE '(closes|fixes|resolves|addresses)\s+#[[:digit:]]+' | \
3232
grep -oE '#[[:digit:]]+' | head -1 | tr -d '#')

0 commit comments

Comments
 (0)