From e4b3e17729e6a6b1e9381e03ec89c23e42ca1949 Mon Sep 17 00:00:00 2001 From: Dr-Electron Date: Tue, 24 Sep 2024 11:36:23 +0200 Subject: [PATCH] Use separate PAT as GitHub token --- .github/workflows/shared-release.yml | 3 +++ .github/workflows/upload-docs.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/shared-release.yml b/.github/workflows/shared-release.yml index 86a4d1ab94..3eef0ee4a0 100644 --- a/.github/workflows/shared-release.yml +++ b/.github/workflows/shared-release.yml @@ -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}} diff --git a/.github/workflows/upload-docs.yml b/.github/workflows/upload-docs.yml index 5ce1429767..7c98b7cb7e 100644 --- a/.github/workflows/upload-docs.yml +++ b/.github/workflows/upload-docs.yml @@ -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'