Skip to content

Commit

Permalink
add top level permission to gh action (nginx#5584)
Browse files Browse the repository at this point in the history
  • Loading branch information
vepatel authored and ssrahul96 committed Jun 20, 2024
1 parent 7aef14a commit e95e59c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ on:
- main
types: ["closed"]

permissions:
contents: read

jobs:
cherry_pick_to_release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-22.04
name: Cherry pick into release-3.5
if: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') && github.event.pull_request.merged == true }}
steps:
Expand Down

0 comments on commit e95e59c

Please sign in to comment.