Skip to content

Commit 5eca227

Browse files
authored
Use best practice to avoid potential attack (#24986)
1 parent 56d0430 commit 5eca227

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pr-labeled.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ jobs:
2020
.github
2121
- name: process label
2222
shell: pwsh
23-
run: .github/workflows/script/PrLabeled.ps1 -LabelName "${{ github.event.label.name }}" -PrUrl $env:PR
23+
env:
24+
LABEL: ${{ github.event.label.name }}
25+
run: .github/workflows/script/PrLabeled.ps1 -LabelName "$LABEL" -PrUrl $env:PR

0 commit comments

Comments
 (0)