From 8b8fb93468df1759b4a436d94d7609aaa43fc29c Mon Sep 17 00:00:00 2001 From: JayShortway <29483617+JayShortway@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:38:01 +0200 Subject: [PATCH] Double quoted variables to prevent globbing and word splitting --- .github/workflows/trigger_all_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger_all_tests.yml b/.github/workflows/trigger_all_tests.yml index bbdd83d229..8cc6ef44ea 100644 --- a/.github/workflows/trigger_all_tests.yml +++ b/.github/workflows/trigger_all_tests.yml @@ -42,7 +42,7 @@ jobs: # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#cli-tools - id: 'get-branch' # the id here is important since it gets reused in the next step - run: echo "branch=$(gh pr view $PR_NO --repo $REPO --json headRefName --jq '.headRefName')" >> "$GITHUB_OUTPUT" + run: echo "branch=$(gh pr view "$PR_NO" --repo "$REPO" --json headRefName --jq '.headRefName')" >> "$GITHUB_OUTPUT" env: REPO: ${{ github.repository }} PR_NO: ${{ github.event.issue.number }}