Skip to content

Windows Defender exclusions in CI should be narrowed or audited #3497

Description

@Widthdom

Problem

CI adds Windows Defender exclusions for broad workspace and package-cache paths. That improves test stability/performance but expands the unscanned area during workflow execution.

Evidence

.github/workflows/dotnet.yml and .github/workflows/release.yml build exclusion candidates including:

  • ${{ github.workspace }}
  • $env:RUNNER_TEMP, $env:TEMP, $env:TMP, GetTempPath()
  • $env:NUGET_PACKAGES, user NuGet cache paths

Expected behavior

Narrow the exclusion list to the minimum paths needed for test performance, or emit an explicit audit record explaining the exact exclusions and why they are required.

Labels

enhancement, security, github_actions

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgithub_actionsPull requests that update GitHub Actions codesecurity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions