ci: fix labeler github token permissions
name: "Pull Request Labeler"
on:
-- pull_request_target
+ pull_request_target:
+ types:
+ - opened
+ - reopened
+ - synchronize
-jobs:
- triage:
- runs-on: ubuntu-latest
permissions:
+ checks: write
contents: read
- issues: write
+ pull-requests: write
+
+jobs:
+ label:
+ runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
-
+ sync-labels: true
