summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-10-16 16:37:44 +0800
committerGitHub <noreply@github.com>2023-10-16 16:37:44 +0800
commitdf171725ccc555eb68b51bc4cd49e65514ca301b (patch)
tree69152fd626cfe60c642220147bd297d602fe5bf9
parentf987636f785f13fd9e96d942a6b73176c5673d1f (diff)
CI: allow Windows tests to run if PR source is own repo (#306)
-rw-r--r--.github/workflows/ci.yaml4
1 files 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: |