[8.15] [CI] Fix auto approve backport permissions (#187813) (#187833)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[CI] Fix auto approve backport permissions
(#187813)](https://github.com/elastic/kibana/pull/187813)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Brad
White","email":"Ikuni17@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-07-09T08:02:15Z","message":"[CI]
Fix auto approve backport permissions (#187813)\n\n## Summary\r\n\r\nIn
#187246 this workflow was changed to `pull_request` instead
of\r\n`pull_request_target` and has been failing on forks. When running
with\r\n`pull_request` the workflow is in the context of the fork and
doesn't\r\nhave secrets from the Kibana
repo.\r\n\r\n[Action\r\nlogs](https://github.com/elastic/kibana/actions/workflows/auto-approve-backports.yml)\r\n\r\n[Docs](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflows-in-forked-repositories)","sha":"f3e23959b658b77b7f17e123adbe647ddbe16646","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:prev-minor","v8.16.0"],"title":"[CI]
Fix auto approve backport
permissions","number":187813,"url":"https://github.com/elastic/kibana/pull/187813","mergeCommit":{"message":"[CI]
Fix auto approve backport permissions (#187813)\n\n## Summary\r\n\r\nIn
#187246 this workflow was changed to `pull_request` instead
of\r\n`pull_request_target` and has been failing on forks. When running
with\r\n`pull_request` the workflow is in the context of the fork and
doesn't\r\nhave secrets from the Kibana
repo.\r\n\r\n[Action\r\nlogs](https://github.com/elastic/kibana/actions/workflows/auto-approve-backports.yml)\r\n\r\n[Docs](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflows-in-forked-repositories)","sha":"f3e23959b658b77b7f17e123adbe647ddbe16646"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/187813","number":187813,"mergeCommit":{"message":"[CI]
Fix auto approve backport permissions (#187813)\n\n## Summary\r\n\r\nIn
#187246 this workflow was changed to `pull_request` instead
of\r\n`pull_request_target` and has been failing on forks. When running
with\r\n`pull_request` the workflow is in the context of the fork and
doesn't\r\nhave secrets from the Kibana
repo.\r\n\r\n[Action\r\nlogs](https://github.com/elastic/kibana/actions/workflows/auto-approve-backports.yml)\r\n\r\n[Docs](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflows-in-forked-repositories)","sha":"f3e23959b658b77b7f17e123adbe647ddbe16646"}}]}]
BACKPORT-->

Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2024-07-09 17:06:47 +02:00 committed by GitHub
parent f6c1ad83b4
commit 5e0d1ad02b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
on:
pull_request:
pull_request_target:
branches:
- main
types:

View file

@ -1,5 +1,5 @@
on:
pull_request:
pull_request_target:
branches-ignore:
- main
types: