Skip to content

github-actions: pull_request in forked PRs cannot change permissions scope #4131

github-actions: pull_request in forked PRs cannot change permissions scope

github-actions: pull_request in forked PRs cannot change permissions scope #4131

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