From df171725ccc555eb68b51bc4cd49e65514ca301b Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:37:44 +0800 Subject: [PATCH] CI: allow Windows tests to run if PR source is own repo (#306) --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3177e3c..548ad6c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -76,8 +76,8 @@ jobs: tool: cargo-insta - name: Install npcap on Windows - # PRs cannot not be trusted with repository secrets - if: (matrix.os == 'windows-latest') && (github.event_name != 'pull_request') + # PRs from other repositories cannot not be trusted with repository secrets + if: matrix.os == 'windows-latest' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) env: NPCAP_OEM_URL: ${{ secrets.NPCAP_OEM_URL }} run: |