From 21ec8c48bc307aea5a06f031174507f55ab764ba Mon Sep 17 00:00:00 2001 From: Yixue Wang Date: Wed, 26 Aug 2026 10:16:46 +0800 Subject: [PATCH] ci: add allow-unsafe-pr-checkout option to checkout steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add allow-unsafe-pr-checkout: true to both source and dest repository checkout steps in synchronize workflow. 在同步工作流的源仓库和目标仓库 checkout 步骤中添加 allow-unsafe-pr-checkout: true 配置项。 Log: 同步工作流checkout步骤添加unsafe-pr-checkout选项 Influence: 允许在PR事件触发时安全检出仓库,确保同步流程正常运行。 --- .github/workflows/synchronize-to-dtk6.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/synchronize-to-dtk6.yml b/.github/workflows/synchronize-to-dtk6.yml index a68b420..c3de340 100644 --- a/.github/workflows/synchronize-to-dtk6.yml +++ b/.github/workflows/synchronize-to-dtk6.yml @@ -33,6 +33,7 @@ jobs: path: 'source' repository: ${{ inputs.source_repo }} fetch-depth: 0 + allow-unsafe-pr-checkout: true - name: Checkout dest repository ${{ inputs.dest_repo }} uses: actions/checkout@v3 @@ -41,6 +42,7 @@ jobs: ref: 'master' path: 'dest' repository: ${{ inputs.dest_repo }} + allow-unsafe-pr-checkout: true - name: Synchronize files to ${{ inputs.dest_repo }} id: rsync