Skip to content

[8.15] github-actions: pull_request in forked PRs cannot change permissions scope (#196550) #9228

[8.15] github-actions: pull_request in forked PRs cannot change permissions scope (#196550)

[8.15] github-actions: pull_request in forked PRs cannot change permissions scope (#196550) #9228

on:
pull_request_target:
branches-ignore:
- main
types:
- opened
jobs:
approve:
name: Auto-approve backport
runs-on: ubuntu-latest
if: |
startsWith(github.event.pull_request.head.ref, 'backport') &&
github.event.pull_request.user.login == 'kibanamachine'
permissions:
pull-requests: write
steps:
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 #4.0.0