Add proper write perms

This commit is contained in:
Dan Pock 2024-08-05 19:30:17 -04:00
parent 281bc39fca
commit a14a4e2ff1
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ on:
jobs:
port-issue:
permissions:
issues: write
runs-on: ubuntu-latest
if: ${{ !github.event.issue.pull_request && (contains(github.event.comment.body, '/backport') || contains(github.event.comment.body, '/forwardport')) }}
steps:

View File

@ -12,6 +12,8 @@ env:
jobs:
port-pr:
permissions:
pull-requests: write
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && (startsWith(github.event.comment.body, '/backport') || startsWith(github.event.comment.body, '/forwardport')) }}
steps: