Skip to content

Commit c2a10bb

Browse files
committed
fix: update GH_TOKEN usage to use secrets in pull request workflow
1 parent bac0f66 commit c2a10bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/pull-request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Check for in-progress build runs
2020
id: gate
2121
env:
22-
GH_TOKEN: ${{ github.token }}
22+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2323
PR_NUMBER: ${{ github.event.pull_request.number }}
2424
run: |
2525
set -euo pipefail
@@ -46,7 +46,7 @@ jobs:
4646
if: github.event.action == 'unlabeled' && github.event.label.name == 'build'
4747
runs-on: ubuntu-latest
4848
env:
49-
GH_TOKEN: ${{ github.token }}
49+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5050
PR_NUMBER: ${{ github.event.pull_request.number }}
5151
steps:
5252
- name: Cancel running build workflows for this PR
@@ -112,7 +112,7 @@ jobs:
112112
outputs:
113113
comment_id: ${{ steps.comment.outputs.comment_id }}
114114
env:
115-
GH_TOKEN: ${{ github.token }}
115+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
116116
PR_NUMBER: ${{ github.event.pull_request.number }}
117117
steps:
118118
- name: Delete previous build comments
@@ -174,7 +174,7 @@ jobs:
174174
- name: Publish comment
175175
if: ${{ needs.install.outputs.artifact_name && needs.install.outputs.artifact_url }}
176176
env:
177-
GH_TOKEN: ${{ github.token }}
177+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
178178
COMMENT_ID: ${{ needs.comment.outputs.comment_id }}
179179
run: |
180180
set -euo pipefail

0 commit comments

Comments
 (0)