Skip to content

Commit

Permalink
chore(ci): Add perms for PR labeler (#31738)
Browse files Browse the repository at this point in the history
* chore(ci): Add perms for PR labeler

* chore(ci): Add perms for PR labeler

* chore(ci): Revert to pull_request_target for PR labeler

* chore(ci): Restrict perms in pr labeler, 'persist-credentials: false' in checkout step
  • Loading branch information
bsmth committed Jan 16, 2024
1 parent 617ddfd commit a457cfe
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Pull request labeler

on:
pull_request:
types: [opened, synchronize]
branches:
- "main"
- pull_request_target

permissions:
pull-requests: write
contents: read

jobs:
# Docs: https://github.com/actions/labeler
Expand All @@ -26,6 +27,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Label PR based on size
uses: cbrgm/pr-size-labeler-action@main
Expand Down

0 comments on commit a457cfe

Please sign in to comment.