Skip to content

Commit

Permalink
Use separate PAT as GitHub token
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Sep 24, 2024
1 parent 2b20378 commit e4b3e17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/shared-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ jobs:
if: ${{env.IS_RELEASE && inputs.create-github-release}}
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
with:
# Token expires Jan 25, 2025
# 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
token: ${{ secrets.GH_RELEASE_PUBLISH_PAT }}
body_path: RELEASE_CHANGELOG.md
prerelease: ${{env.IS_PRE_RELEASE}}
tag_name: ${{env.CURRENT_VERSION}}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/upload-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
description: 'Version to publish docs under (e.g. `v1.2.3-dev.1`)'
required: true

env:
GH_TOKEN: ${{ github.token }}

permissions:
actions: 'write'

Expand Down

0 comments on commit e4b3e17

Please sign in to comment.