From f6dff6eb6032d6c2a4079d863c7465208006a534 Mon Sep 17 00:00:00 2001 From: Erik Burton Date: Thu, 14 Nov 2024 15:05:33 -0800 Subject: [PATCH] fix: use env for GH_TOKEN --- .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