From acd25c5330936942ccb3ab185426cd91d17c0ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Sat, 22 Jun 2024 08:31:04 +0200 Subject: [PATCH] Create the draft pull request for unstable version using a PAT token Otherwise actions will not run on the new pull request. Adjust the permissions for the autogenerated github.secrets token. Now that we use a PAT token we don't need anything beside read permission. --- .github/workflows/go-version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-version.yml b/.github/workflows/go-version.yml index 2a7678a..3acb83d 100644 --- a/.github/workflows/go-version.yml +++ b/.github/workflows/go-version.yml @@ -6,8 +6,7 @@ on: - cron: '45 * * * *' permissions: - contents: write - pull-requests: write + contents: read jobs: stable: @@ -86,3 +85,4 @@ jobs: See [the draft release notes](${{ steps.release-notes.outputs.URL }}). This pull request is only intented for getting feedback on compatibility with future Go versions. Don't merge it! + token: ${{ secrets.PAT_TOKEN }}