Skip to content

Commit

Permalink
Merge pull request #261 from mallardduck/port-gha-perms
Browse files Browse the repository at this point in the history
Add proper write perms
  • Loading branch information
mallardduck authored Aug 5, 2024
2 parents 281bc39 + a14a4e2 commit 8786a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/port-issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/port-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8786a14

Please sign in to comment.