From 5cb0402b292ef886d7302d9b6c6e82cc95312258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9cate=20Moonlight?= Date: Mon, 9 Sep 2024 11:46:36 +0200 Subject: [PATCH] Use proper permissions in the release and pre-release jobs --- .github/workflows/ci.yml | 2 ++ .github/workflows/release.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcdc2dd..7b828c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -216,6 +216,8 @@ jobs: name: Create a GitHub prerelease with the binary artifacts runs-on: ubuntu-latest needs: ["build", "build-alpine"] + permissions: + contents: write steps: - uses: actions/download-artifact@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd0cbe9..424eb2f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -233,6 +233,8 @@ jobs: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/v') needs: ['build', 'build-alpine'] + permissions: + contents: write steps: - uses: actions/download-artifact@v4