From ad1ccf52408603746e6eb32924ac0167b9c7f697 Mon Sep 17 00:00:00 2001 From: Maksim An Date: Fri, 22 Mar 2024 18:17:09 -0700 Subject: [PATCH] fix: move permissions to the correct job (#2080) (#2081) The permissions block should be under `create_release` job, rather than `build`. Signed-off-by: Maksim An (cherry picked from commit 3eeba905b4e0a408b372e3de326f00c70bdb442a) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5632a24e17..8a1051dd82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,6 @@ env: jobs: build: - permissions: - contents: write runs-on: "windows-2019" steps: - uses: actions/checkout@v4 @@ -34,6 +32,8 @@ jobs: create_release: needs: build runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Download artifacts uses: actions/download-artifact@v4