From f1beabaeb2ccb30a225dd50426b74c8b3b170642 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 23 Dec 2024 21:44:43 +0800 Subject: [PATCH] chore(CI): specify minimal permissions for issue-labeler --- .github/workflows/pr-label.yaml | 4 ++++ .github/workflows/release.yml | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-label.yaml b/.github/workflows/pr-label.yaml index 9237b577..43da43e7 100644 --- a/.github/workflows/pr-label.yaml +++ b/.github/workflows/pr-label.yaml @@ -6,6 +6,10 @@ on: - opened - edited +permissions: + issues: write + contents: read + jobs: change-labeling: name: Labeling for changes diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e16374b..e5b12741 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,9 +18,6 @@ on: required: true default: 'main' -permissions: - id-token: write - jobs: release: name: Release