ci: use pull_request_target (#370)

Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
Yiya Chen 2025-07-03 14:00:31 +08:00 committed by GitHub
parent f12717a8f4
commit cebb302730
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
name: "[PR Management] Request Backport via Mergify"
on:
pull_request:
pull_request_target:
types: [closed]
branches: [main]
@ -13,6 +13,11 @@ jobs:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
- name: Post Mergify backport command
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}