Skip to content

Commit 073d12e

Browse files
committed
Fix normalization error involving GITHUB_TOKEN in action workflows
1 parent 56b9c6a commit 073d12e

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/deployment-preview.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
id: verify
5555
uses: './.github/actions/check-prerequisites-and-locate-build-artifact'
5656
with:
57-
github-token: ${{ secrets.GITHUB_TOKEN }}
57+
github-token: ${{ github.token }}
5858
sha: ${{ steps.context.outputs.sha }}
5959
trigger-event: ${{ steps.context.outputs.trigger_event }}
6060
head-branch: ${{ steps.context.outputs.head_branch }}
@@ -71,22 +71,22 @@ jobs:
7171
if: steps.verify.outputs.should_deploy == 'true'
7272
uses: './.github/actions/download-build-artifact'
7373
with:
74-
github-token: ${{ secrets.GITHUB_TOKEN }}
74+
github-token: ${{ github.token }}
7575
artifact-download-url: ${{ steps.verify.outputs.artifact_download_url }}
7676

7777
- name: Create GitHub deployment (preview)
7878
if: steps.verify.outputs.should_deploy == 'true'
7979
id: gh_deploy
8080
uses: './.github/actions/create-github-deployment-preview'
8181
with:
82-
github-token: ${{ secrets.GITHUB_TOKEN }}
82+
github-token: ${{ github.token }}
8383
sha: ${{ steps.context.outputs.sha }}
8484

8585
- name: Mark deployment in progress
8686
if: steps.verify.outputs.should_deploy == 'true'
8787
uses: './.github/actions/mark-deployment-in-progress'
8888
with:
89-
github-token: ${{ secrets.GITHUB_TOKEN }}
89+
github-token: ${{ github.token }}
9090
deployment-id: ${{ steps.gh_deploy.outputs.deployment_id }}
9191
description: Deploying to Vercel (preview)
9292

@@ -109,7 +109,7 @@ jobs:
109109
if: steps.verify.outputs.should_deploy == 'true'
110110
uses: './.github/actions/update-deployment-status'
111111
with:
112-
github-token: ${{ secrets.GITHUB_TOKEN }}
112+
github-token: ${{ github.token }}
113113
deployment-id: ${{ steps.gh_deploy.outputs.deployment_id }}
114114
exit-code: ${{ steps.vercel.outputs.exit_code }}
115115
environment-url: ${{ steps.vercel.outputs.deploy_url }}

.github/workflows/deployment-production.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
id: verify
5252
uses: './.github/actions/check-prerequisites-and-locate-build-artifact'
5353
with:
54-
github-token: ${{ secrets.GITHUB_TOKEN }}
54+
github-token: ${{ github.token }}
5555
sha: ${{ steps.context.outputs.sha }}
5656
trigger-event: ${{ steps.context.outputs.trigger_event }}
5757
head-branch: ${{ steps.context.outputs.head_branch }}
@@ -67,22 +67,22 @@ jobs:
6767
if: steps.verify.outputs.should_deploy == 'true'
6868
uses: './.github/actions/download-build-artifact'
6969
with:
70-
github-token: ${{ secrets.GITHUB_TOKEN }}
70+
github-token: ${{ github.token }}
7171
artifact-download-url: ${{ steps.verify.outputs.artifact_download_url }}
7272

7373
- name: Create GitHub deployment (production)
7474
if: steps.verify.outputs.should_deploy == 'true'
7575
id: gh_deploy
7676
uses: './.github/actions/create-github-deployment-production'
7777
with:
78-
github-token: ${{ secrets.GITHUB_TOKEN }}
78+
github-token: ${{ github.token }}
7979
sha: ${{ steps.context.outputs.sha }}
8080

8181
- name: Mark deployment in progress
8282
if: steps.verify.outputs.should_deploy == 'true'
8383
uses: './.github/actions/mark-deployment-in-progress'
8484
with:
85-
github-token: ${{ secrets.GITHUB_TOKEN }}
85+
github-token: ${{ github.token }}
8686
deployment-id: ${{ steps.gh_deploy.outputs.deployment_id }}
8787
description: Deploying to Vercel (production)
8888

@@ -105,7 +105,7 @@ jobs:
105105
if: steps.verify.outputs.should_deploy == 'true'
106106
uses: './.github/actions/update-deployment-status'
107107
with:
108-
github-token: ${{ secrets.GITHUB_TOKEN }}
108+
github-token: ${{ github.token }}
109109
deployment-id: ${{ steps.gh_deploy.outputs.deployment_id }}
110110
exit-code: ${{ steps.vercel.outputs.exit_code }}
111111
environment-url: ${{ steps.vercel.outputs.deploy_url }}

0 commit comments

Comments
 (0)