From c16b05447b9a07a4555596d688cde329caff97c0 Mon Sep 17 00:00:00 2001 From: Cedric Wille <24487628+cwille97@users.noreply.github.com> Date: Tue, 16 May 2023 15:32:46 -0400 Subject: [PATCH] Fix token (#65) Better to use an actions token than a specific user's PAT token which will change if the user changes employment --- .github/workflows/canary.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/canary.yaml b/.github/workflows/canary.yaml index 3142b0b..569c1cc 100644 --- a/.github/workflows/canary.yaml +++ b/.github/workflows/canary.yaml @@ -38,12 +38,12 @@ jobs: uses: actions/checkout@v3 - name: Install extension env: - GITHUB_TOKEN: ${{ secrets.REPO_WRITE_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh extensions install actions/gh-actions-cache - name: List Command shell: bash env: - GITHUB_TOKEN: ${{ secrets.REPO_WRITE_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | cache_found=$(gh actions-cache list --key $CacheKey --limit 100 --branch $GITHUB_REF --order desc --sort created-at | grep $CacheKey) echo $cache_found @@ -51,7 +51,7 @@ jobs: - name: Delete Command shell: bash env: - GITHUB_TOKEN: ${{ secrets.REPO_WRITE_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | cache_delete=$(gh actions-cache delete $CacheKey --branch $GITHUB_REF --confirm | grep "Deleted 1 cache entry with key") echo $cache_delete