diff --git a/.github/workflows/linear-pr-integration.yaml b/.github/workflows/linear-pr-integration.yaml index fc1e8a8c259..9e6f34f5f47 100644 --- a/.github/workflows/linear-pr-integration.yaml +++ b/.github/workflows/linear-pr-integration.yaml @@ -14,4 +14,4 @@ jobs: with: pull_number: ${{ github.event.pull_request.number }} linear_api_key: ${{ secrets.LINEAR_TOKEN }} - github_token: ${{ secrets.REPO_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr-validate-changesets.yaml b/.github/workflows/pr-validate-changesets.yaml index 286815b44e9..d15c13cd503 100644 --- a/.github/workflows/pr-validate-changesets.yaml +++ b/.github/workflows/pr-validate-changesets.yaml @@ -21,9 +21,6 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.client_payload.ref }} - # workaround to ensure changeset file is pushed with REPO_TOKEN owner's account - # see https://github.com/changesets/action/issues/70 - persist-credentials: false - name: Get PR's changeset file run: | @@ -51,7 +48,7 @@ jobs: run: | echo "machine github.com" > $HOME/.netrc echo "login github-actions[bot]" >> $HOME/.netrc - echo "password ${{ secrets.REPO_TOKEN }}" >> $HOME/.netrc + echo "password ${{ secrets.GITHUB_TOKEN }}" >> $HOME/.netrc chmod 600 $HOME/.netrc - name: Commit Changeset @@ -63,7 +60,7 @@ jobs: git commit -m "build: update dependency changeset" git push origin HEAD:${{ github.event.pull_request.head.ref }} env: - GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} validate-changeset: name: Validate PR Changeset diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 98c20fa8953..18fde5f5bb9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,9 +24,6 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref }} - # workaround to ensure force pushes to changeset branch use REPO_TOKEN owner's account - # see https://github.com/changesets/action/issues/70 - persist-credentials: false - name: CI Setup uses: ./.github/actions/ci-setup @@ -76,13 +73,13 @@ jobs: githubReleaseName: ${{ env.RELEASE_VERSION }} githubTagName: ${{ env.RELEASE_VERSION }} env: - GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Prettify changelog run: pnpm changeset:update-changelog env: - GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} RELEASE_TAG: ${{ env.RELEASE_VERSION }} PUBLISHED: ${{ steps.changesets.outputs.published }} REF_NAME: ${{ github.ref_name }} @@ -129,7 +126,7 @@ jobs: workflow: update-nightly.yml ref: master repo: FuelLabs/docs-hub - token: ${{ secrets.REPO_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Create PR to apply latest release to master if: steps.changesets.outputs.published == 'true' && startsWith(github.ref_name, 'release/') && env.RELEASE_VERSION_HIGHER_THAN_LATEST == 'true' @@ -145,7 +142,7 @@ jobs: gh pr create -B master -H $GITHUB_REF_NAME --title "$PR_TITLE" --body "$PR_BODY" env: - GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} RELEASE_VERSION: ${{ env.RELEASE_VERSION }} LATEST_VERSION: ${{ env.LATEST_VERSION }} @@ -155,7 +152,7 @@ jobs: if: steps.changesets.outputs.published == 'true' && startsWith(github.ref_name, 'release/') && env.RELEASE_VERSION_HIGHER_THAN_LATEST == 'false' run: git push origin --delete ${{ github.ref_name }} env: - GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Upload assets to S3 - uses: unfor19/install-aws-cli-action@v1.0.7