CI: allow Windows tests to run if PR source is own repo (#306)

This commit is contained in:
cyqsimon
2023-10-16 16:37:44 +08:00
committed by GitHub
parent f987636f78
commit df171725cc

View File

@@ -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: |