Skip to content

Commit

Permalink
Add permissions on jobs creating PR
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz committed Aug 28, 2024
1 parent 562ffc1 commit a15a4e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/create_rc_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
create_rc_pr:
runs-on: ubuntu-latest
needs: find_release_branches
permissions:
contents: write # push commit and branch
pull-requests: write
strategy:
matrix:
value: ${{fromJSON(needs.find_release_branches.outputs.branches)}}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cws-btfhub-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ jobs:
combine:
needs: generate
runs-on: ubuntu-latest
permissions:
contents: write # push commit and branch
pull-requests: write
steps:
- name: Checkout datadog-agent repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
Expand Down

0 comments on commit a15a4e7

Please sign in to comment.