diff --git a/.github/workflows/shared-release.yml b/.github/workflows/shared-release.yml index 86a4d1ab9..3eef0ee4a 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 5ce142976..7c98b7cb7 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'