From d1703b7ce576be7f4d0bb1c6c50f3ac5eab27002 Mon Sep 17 00:00:00 2001 From: Erik Burton Date: Mon, 18 Nov 2024 11:03:16 -0800 Subject: [PATCH] fix: use env for GH_TOKEN (#15253) --- .github/workflows/delete-caches.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/delete-caches.yml b/.github/workflows/delete-caches.yml index aaba0dda623..64b9e799665 100644 --- a/.github/workflows/delete-caches.yml +++ b/.github/workflows/delete-caches.yml @@ -24,10 +24,14 @@ jobs: uses: actions/checkout@v4.1.2 - name: Setup gh-actions-cache extension + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh extension install actions/gh-actions-cache - name: Retrieve Trunk SHA id: get-sha + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | SHA=$(gh pr view -R $REPO $PR_NUMBER --json mergeCommit --jq .mergeCommit.oid) echo "sha=$SHA" >> $GITHUB_OUTPUT