Skip to content

Commit

Permalink
MAINT, ENH: move labeler permissions to the level of the job
Browse files Browse the repository at this point in the history
 See scipy#19088. These permissions are moved from the level of the workflow to that of the job for security reasons, since this workflow uses the `pull_request_target` event.

[skip cirrus] [skip circle]
  • Loading branch information
agriyakhetarpal committed Dec 21, 2023
1 parent e72de07 commit 4f103ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on:

# Permissions needed for labelling Pull Requests automatically
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication
permissions:
contents: read
pull-requests: write

jobs:

label_pull_request:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: thomasjpfan/labeler@v2.5.1
Expand Down

0 comments on commit 4f103ea

Please sign in to comment.