Skip to content

Commit b956aed

Browse files
authored
chore: modify windows defender settings (#2974)
1 parent 6bf3da2 commit b956aed

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/run-tests.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ jobs:
1818
os: [windows-latest, windows-11-arm]
1919
runs-on: ${{ matrix.os }}
2020
steps:
21-
- name: Disable Windows Defender
22-
run: Set-MpPreference -DisableRealtimeMonitoring $true
21+
- name: Add Windows Defender Exclusions
2322
shell: powershell
23+
run: |
24+
Add-MpPreference -ExclusionPath $env:GITHUB_WORKSPACE
25+
Add-MpPreference -ExclusionPath $env:TEMP
2426
- uses: actions/checkout@v6
2527
# Build and Test
2628
- name: Run task 'build'
@@ -51,9 +53,11 @@ jobs:
5153
os: [windows-latest, windows-11-arm]
5254
runs-on: ${{ matrix.os }}
5355
steps:
54-
- name: Disable Windows Defender
55-
run: Set-MpPreference -DisableRealtimeMonitoring $true
56+
- name: Add Windows Defender Exclusions
5657
shell: powershell
58+
run: |
59+
Add-MpPreference -ExclusionPath $env:GITHUB_WORKSPACE
60+
Add-MpPreference -ExclusionPath $env:TEMP
5761
- uses: actions/checkout@v6
5862
# Build and Test
5963
- name: Run task 'build'

0 commit comments

Comments
 (0)