Skip to content

Commit

Permalink
chore: fix labeler.yml workflow permissions, again (#3904)
Browse files Browse the repository at this point in the history
Earlier failed attempts were #3885 and #3886.

Fixes: #3884
  • Loading branch information
trentm authored Mar 7, 2024
1 parent d4daa4d commit 7a697bc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ env:

permissions:
contents: read
# This permission is needed to add labels to issues/PRs per
# https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#add-labels-to-an-issue
issues: write

jobs:
triage:
Expand All @@ -20,9 +23,6 @@ jobs:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler-config.yml
enable-versioned-regex: 0
permissions:
issues: write
pull-requests: write
- name: Check team membership for user
uses: elastic/[email protected]
id: checkUserMember
Expand All @@ -45,9 +45,6 @@ jobs:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/community-label.yml
enable-versioned-regex: 0
permissions:
issues: write
pull-requests: write
- name: Assign new internal pull requests to project
uses: elastic/[email protected]
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event.pull_request
Expand Down

0 comments on commit 7a697bc

Please sign in to comment.