Skip to content

Commit 7a4deee

Browse files
authored
Use separate PAT as GitHub token (#1415)
1 parent b8ec3f5 commit 7a4deee

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/shared-release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ jobs:
155155
if: ${{env.IS_RELEASE && inputs.create-github-release}}
156156
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
157157
with:
158+
# Token expires Jan 16, 2026
159+
# This is needed because of https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#triggering-a-workflow-from-a-workflow
160+
token: ${{ secrets.GH_RELEASE_PUBLISH_PAT }}
158161
body_path: RELEASE_CHANGELOG.md
159162
prerelease: ${{env.IS_PRE_RELEASE}}
160163
tag_name: ${{env.CURRENT_VERSION}}

.github/workflows/upload-docs.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
description: 'Version to publish docs under (e.g. `v1.2.3-dev.1`)'
1010
required: true
1111

12+
env:
13+
GH_TOKEN: ${{ github.token }}
14+
1215
permissions:
1316
actions: 'write'
1417

0 commit comments

Comments
 (0)