Skip to content

Commit

Permalink
chore: migrate from REPO_TOKEN to GITHUB_TOKEN (#696)
Browse files Browse the repository at this point in the history
* chore: migrate from REPO_TOKEN to GITHUB_TOKEN

* Add write permission for pull requests in GitHub actions workflow.
  • Loading branch information
JoshuaBatty authored Jan 22, 2025
1 parent 9c04920 commit b9187b8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
runs-on: ubuntu-latest
permissions: # Write access to push changes to pages
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: Install latest Rust
Expand All @@ -63,7 +64,7 @@ jobs:
coverage-files: lcov.info
minimum-coverage: 0 # for now we are not enforcing any minimum coverage.
artifact-name: code-coverage-report
github-token: ${{ secrets.REPO_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true

try-run-fuelup-init:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Deploy latest fuelup init
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.REPO_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
keep_files: true
publish_dir: ${{ env.FUELUP_INIT_DIR }}
destination_dir: ./
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Deploy latest fuelup version
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.REPO_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
keep_files: true
publish_dir: ${{ env.FUELUP_VERSION_DIR }}
destination_dir: ./
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Deploy master
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.REPO_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book
destination_dir: master
cname: install.fuel.network
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Deploy tag
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.REPO_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book
destination_dir: ${{ steps.branch_name.outputs.BRANCH_NAME }}
cname: install.fuel.network
Expand All @@ -62,7 +62,7 @@ jobs:
- name: Set latest to point to tag
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.REPO_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./latest/
destination_dir: ./latest/
cname: install.fuel.network
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-nightly-channel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Deploy nightly channel (latest version)
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.REPO_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.NIGHTLY_CHANNEL_DIR }}
keep_files: true
destination_dir: ./
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Deploy nightly channel (archive)
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.REPO_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.NIGHTLY_CHANNEL_DIR }}
keep_files: true
destination_dir: ${{ steps.setup.outputs.archive_dir }}
Expand Down

0 comments on commit b9187b8

Please sign in to comment.