Skip to content

Commit

Permalink
Add required permissions to PR Labeler (see https://github.com/TimonV…
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbco authored Sep 23, 2024
1 parent c10ffb0 commit 482858d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ name: PR Labeler
on:
pull_request:
types: [opened]
pull_request_target:
types: [opened]

permissions:
contents: read

jobs:
pr-labeler:
runs-on: ubuntu-latest
permissions:
contents: read # for TimonVS/pr-labeler-action to read config file
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
steps:
- uses: TimonVS/[email protected]
with:
configuration-path: .github/pr-labeler-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 482858d

Please sign in to comment.