Skip to content

Commit

Permalink
chore: add permission
Browse files Browse the repository at this point in the history
  • Loading branch information
hexqi committed Aug 26, 2024
1 parent 0572eaa commit 386c704
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ on:
pull_request:
types: [opened, edited]

permissions:
# Setting up permissions in the workflow to limit the scope of what it can do. Optional!
contents: read # the config file
issues: write # for labeling issues (on: issues)
pull-requests: write # for labeling pull requests (on: pull_request_target or on: pull_request)
statuses: write # to generate status
checks: write # to generate status

jobs:
label:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 386c704

Please sign in to comment.