Skip to content

Commit a206511

Browse files
authored
fix(ci): Fix ready-to-merge-workflow security issue (#5452)
1 parent 5602cc4 commit a206511

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ready-to-merge-workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ jobs:
1919
- name: Check for exact 'ready-to-merge' label
2020
if: ${{ inputs.is-pr }}
2121
id: check-label
22+
env:
23+
LABELS: ${{ inputs.labels }}
2224
run: |
2325
# Use jq to check for exact label match (avoids substring matching issues with contains())
24-
if echo '${{ inputs.labels }}' | jq -e '.[] | select(.name == "ready-to-merge")' > /dev/null; then
26+
if echo "$LABELS" | jq -e '.[] | select(.name == "ready-to-merge")' > /dev/null; then
2527
echo "label_found=true" >> $GITHUB_OUTPUT
2628
else
2729
echo "label_found=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)