From 34954bb0ba3e18ecc0a21a43a8311cb9ba2b78bc Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 22 Jan 2024 14:54:03 +0800 Subject: [PATCH] fix action permissions --- .github/workflows/release-note.yml | 3 +++ .github/workflows/release.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/release-note.yml b/.github/workflows/release-note.yml index 79cda6983..04c5a2f2b 100644 --- a/.github/workflows/release-note.yml +++ b/.github/workflows/release-note.yml @@ -11,6 +11,9 @@ on: # Only following types are handled by the action, but one can default to all as well types: [ opened, reopened, synchronize ] +permissions: + contents: read + jobs: update_release_draft: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 081e96429..b5ce90ecc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: release: types: [created] +permissions: + contents: write + jobs: upload: if: startsWith(github.ref, 'refs/tags/v')