Skip to content

Commit 15560f2

Browse files
committed
sec: fix script injection
1 parent 9ba1625 commit 15560f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/calculate-size-delta.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
run: |
32-
echo "Searching for PR from branch '${{ github.ref_name }}'..."
33-
PR_NUMBER=$(gh pr list --state open --head "${{ github.ref_name }}" --json number --jq '.[0].number // empty')
32+
echo "Searching for PR from branch ${GITHUB_REF_NAME}..."
33+
PR_NUMBER=$(gh pr list --state open --head "${GITHUB_REF_NAME}" --json number --jq '.[0].number // empty')
3434
if [ -z "$PR_NUMBER" ]; then
3535
echo "Not found in current repo, searching across forks..."
3636
PR_NUMBER=$(gh pr list --state open --json number,headRefName,headRepositoryOwner --jq ".[] | select(.headRefName == \"${{ github.ref_name }}\") | .number" | head -n1)
@@ -148,4 +148,4 @@ jobs:
148148
echo ""
149149
echo "To view:"
150150
echo "1. Go to the 'build' job above"
151-
echo "2. Scroll to the bottom to see the Job Summary"
151+
echo "2. Scroll to the bottom to see the Job Summary"

0 commit comments

Comments
 (0)