fix: use pull_request_target for fork PR access to org secrets - #22
Conversation
shalousun
commented
Jul 11, 2026
- Change trigger from pull_request to pull_request_target so fork PRs can access ORG_CHECKOUT_TOKEN for cross-repo checkout
- Add explicit ref to checkout PR head SHA instead of base branch
- Change trigger from pull_request to pull_request_target so fork PRs can access ORG_CHECKOUT_TOKEN for cross-repo checkout - Add explicit ref to checkout PR head SHA instead of base branch
|
🔍 Before proceeding, please review the contribution guidelines This includes requirements for:
Thanks for your PR. 🙏 In addition, if you have added new features, please provide example code in the repository smart-doc-group/smart-doc-example-cn. This will help other users understand how to use the new features. Code Style Reminder: 🔍 提交前请务必完成以下检查 需特别注意:
感谢您提交的PR。 🙏 另外,如果您添加了新功能,请在仓库smart-doc-group/smart-doc-example-cn中提供示例代码。这将帮助其他用户了解如何使用新功能。 代码风格提示: |