From a1ba1d076454b279075bfb2fde69fd7674907d51 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 25 Mar 2025 16:46:14 +0800 Subject: [PATCH] CI: Add issues/contents write permission to the slash commands --- .github/workflows/format-command.yml | 3 ++- .github/workflows/slash-command-dispatch.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format-command.yml b/.github/workflows/format-command.yml index 432febe91a5..9bda41c0e71 100644 --- a/.github/workflows/format-command.yml +++ b/.github/workflows/format-command.yml @@ -8,7 +8,8 @@ on: repository_dispatch: types: [format-command] -permissions: {} +permissions: + contents: write jobs: format: diff --git a/.github/workflows/slash-command-dispatch.yml b/.github/workflows/slash-command-dispatch.yml index da2cc8a3a5d..ffd439c68f8 100644 --- a/.github/workflows/slash-command-dispatch.yml +++ b/.github/workflows/slash-command-dispatch.yml @@ -10,7 +10,8 @@ on: # Add "edited" type for test purposes. Where possible, avoid using to prevent processing unnecessary events. # types: [created, edited] -permissions: {} +permissions: + issues: write jobs: slashCommandDispatch: