From ceaa6532e54c294bb0123d50c1e4dcc6efc9b130 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 23 Dec 2024 18:58:27 +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 1418598be..5938116a8 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 e523d7124..f5cb06282 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,9 +19,6 @@ on: required: true default: 'main' -permissions: - id-token: write - jobs: release: name: Release