File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
2222permissions :
2323 contents : read
24- pages : write
25- id-token : write
2624
2725# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2826# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
@@ -40,10 +38,12 @@ jobs:
4038
4139 steps :
4240 - name : Checkout repo
43- uses : actions/checkout@v6
41+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
42+ with :
43+ persist-credentials : false
4444
4545 - name : Setup ruby
46- uses : ruby/setup-ruby@v1
46+ uses : ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1.299.0
4747 with :
4848 ruby-version : ${{ env.RUBY_VERSION }}
4949 bundler-cache : true
@@ -57,10 +57,13 @@ jobs:
5757 PAGES_REPO_NWO : ${{ github.repository }}
5858
5959 - name : Upload artifact
60- uses : actions/upload-pages-artifact@v4
60+ uses : actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
6161
6262 # Deployment job
6363 deploy :
64+ permissions :
65+ pages : write
66+ id-token : write
6467 environment :
6568 name : github-pages
6669 url : ${{ steps.deployment.outputs.page_url }}
6972 steps :
7073 - name : Deploy to GitHub Pages
7174 id : deployment
72- uses : actions/deploy-pages@v4
75+ uses : actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
You can’t perform that action at this time.
0 commit comments