diff --git a/.github/workflows/label-pr.yaml b/.github/workflows/label-pr.yaml index 397c6585..b2ff9d4d 100644 --- a/.github/workflows/label-pr.yaml +++ b/.github/workflows/label-pr.yaml @@ -1,5 +1,9 @@ name: Label PRs by Type of Change +permissions: + pull-requests: write + issues: write + on: pull_request: types: [opened, edited, synchronize] @@ -7,9 +11,6 @@ on: jobs: label-pr: runs-on: ubuntu-latest - permissions: - pull-requests: write - issues: write steps: - name: Check PR body for Type of Change uses: actions/github-script@v7