👷 Update permissions and config for labeler GitHub Action (#12008)

This commit is contained in:
Sebastián Ramírez 2024-08-13 19:30:46 -05:00 committed by GitHub
parent 69a6456d9e
commit 7c6e70a0c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 19 deletions

View File

@ -1,19 +0,0 @@
name: Label Checker
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
jobs:
check_labels:
name: Check labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal
repo_token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -19,6 +19,10 @@ jobs:
- uses: actions/labeler@v5
# Run this after labeler applied labels
check-labels:
needs:
- labeler
permissions:
pull-requests: read
name: Check labels
runs-on: ubuntu-latest
steps: