From 386c704cfeae8a766b5827878004226be5699440 Mon Sep 17 00:00:00 2001 From: hexqi Date: Mon, 26 Aug 2024 21:03:43 +0800 Subject: [PATCH] chore: add permission --- .github/workflows/auto-labeler.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index e74592195..01fce592d 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -4,6 +4,14 @@ on: pull_request: types: [opened, edited] +permissions: + # Setting up permissions in the workflow to limit the scope of what it can do. Optional! + contents: read # the config file + issues: write # for labeling issues (on: issues) + pull-requests: write # for labeling pull requests (on: pull_request_target or on: pull_request) + statuses: write # to generate status + checks: write # to generate status + jobs: label: runs-on: ubuntu-latest