From cfda074b2e35b898be06b36d5d0af5cdddd32764 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 3 Oct 2025 19:44:10 +0100 Subject: [PATCH] Grant contents write permission to release jobs Since I restricted the default GitHub Actions token to read-only permissions, this permission needs to be explicitly granted to allow the creation of a release and the upload of release assets. --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2886a350..10873f54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,9 @@ jobs: create_release: runs-on: ubuntu-24.04 + permissions: + contents: write + steps: - name: Create a draft GitHub Release env: @@ -27,6 +30,9 @@ jobs: runs-on: windows-2022 needs: create_release + permissions: + contents: write + strategy: matrix: target: