From 9909e242a8ee124da6ba615532aa10d010b3f035 Mon Sep 17 00:00:00 2001 From: Joshua Batty Date: Wed, 22 Jan 2025 13:10:24 +1100 Subject: [PATCH] chore: migrate from REPO_TOKEN to GITHUB_TOKEN (#157) Switch to using GitHub's built-in GITHUB_TOKEN instead of our custom REPO_TOKEN in CI workflows. --- .github/workflows/patch-pr.yml | 3 ++- .github/workflows/refresh-manifests.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/patch-pr.yml b/.github/workflows/patch-pr.yml index 8c966b19..0e54415b 100644 --- a/.github/workflows/patch-pr.yml +++ b/.github/workflows/patch-pr.yml @@ -17,6 +17,7 @@ jobs: # Give the default GITHUB_TOKEN write permission to commit and push the # added or changed files to the repository. contents: write + pull-requests: write steps: - uses: actions/checkout@v3 with: @@ -54,5 +55,5 @@ jobs: - name: Push changes uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.REPO_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.head_ref }} diff --git a/.github/workflows/refresh-manifests.yml b/.github/workflows/refresh-manifests.yml index e40bf4e4..b3222f6b 100644 --- a/.github/workflows/refresh-manifests.yml +++ b/.github/workflows/refresh-manifests.yml @@ -85,7 +85,7 @@ jobs: - name: Push changes uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.REPO_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} branch: master notify-slack-on-failure: