From 13fa60ebf5fd753177818563f3016d922fddbd48 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 11 Apr 2024 14:14:59 +0200 Subject: [PATCH] github-action: fix permissions --- .github/workflows/release-main.yml | 4 ++-- .github/workflows/release.yml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml index 475b2232..7494b2b4 100644 --- a/.github/workflows/release-main.yml +++ b/.github/workflows/release-main.yml @@ -6,7 +6,6 @@ on: permissions: contents: read - packages: write env: DOTNET_VERSION: '6.0.400' @@ -15,8 +14,9 @@ jobs: release: runs-on: ubuntu-latest permissions: - id-token: write contents: write + id-token: write + packages: write steps: - uses: actions/checkout@v4 - name: Bootstrap Action Workspace diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35a8cff3..e1138239 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,14 +7,15 @@ on: # tags: [ '[0-9]+.[0-9]+.[0-9]+.*' ] permissions: - contents: write - issues: write + contents: read jobs: release: runs-on: ubuntu-latest permissions: + contents: write id-token: write + issues: write steps: - uses: actions/checkout@v4 - name: Bootstrap Action Workspace