Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use separate PAT as GitHub token #1415

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading