mirror of
https://github.com/imsnif/bandwhich.git
synced 2026-02-09 01:59:18 +08:00
CI: allow Windows tests to run if PR source is own repo (#306)
This commit is contained in:
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user