ci: fix unable to add comment on PR from fork (#22777)

This commit is contained in:
rzzf
2025-11-12 19:39:55 +08:00
committed by GitHub
parent 94627e9a6b
commit 85574e1be7

View File

@@ -1,7 +1,11 @@
name: Thanks to the PR Contributor
# Note that this `pull_request_target` is vulnerable, it grants write access to a fork repo
# DO NOT ADD ANY CHECKOUT/CACHING in this workflow
on:
pull_request:
pull_request_target:
types: [closed]
jobs:
comment:
runs-on: ubuntu-latest