Skip to content

Commit

Permalink
Use env.GH_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
willhickey committed Mar 15, 2024
1 parent 72a92bf commit de6ccf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update_upstream_from_fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- v1.17

env:
GH_TOKEN: ${{ secrets.SYNC_TEST_REPO_ONLY }}
GH_TOKEN: ${{ secrets.SYNC_TEST_ADMIN2 }}
GH_REPO: ${{ github.repository }}
BRANCH_REF: ${{ github.ref_name }}
REF: ${{ github.event.REF}}
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
# By default checkout uses secrets.GITHUB_TOKEN. That token won't
# have any permissions in the upstream repo, so we need to override it
# with a Personal Access Token that can access both repos
token: ${{ secrets.SYNC_TEST_ADMIN2 }}
token: ${{ env.GH_TOKEN }}
- name: Add remote for upstream
run: git remote add upstream $UPSTREAM
shell: bash
Expand Down

0 comments on commit de6ccf4

Please sign in to comment.