Skip to content

Commit

Permalink
chore(ci): Restrict perms in pr labeler, 'persist-credentials: false'…
Browse files Browse the repository at this point in the history
… in checkout step
  • Loading branch information
bsmth committed Jan 16, 2024
1 parent 7617c4b commit 9e866dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Pull request labeler
on:
- pull_request_target

permissions:
pull-requests: write
contents: read

jobs:
# Docs: https://github.com/actions/labeler
label-by-path:
Expand All @@ -23,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 9e866dd

Please sign in to comment.