Skip to content

Commit

Permalink
Ignore build warning for vulnerable PowerShell 6.0.4 SDK
Browse files Browse the repository at this point in the history
Not using the vulnerable code.
#2207
  • Loading branch information
fflaten committed Apr 3, 2024
1 parent d4d133f commit e805e2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/csharp/Pester/Pester.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<!-- this version is used specifically to support as old version of PS6 as we can.
ignoring vulnerability warning until we move to 6.1.6 or later
issue: https://github.com/pester/Pester/issues/2207 -->
<PackageReference Include="System.Management.Automation" Version="6.0.4" />
<PackageReference Include="System.Management.Automation" Version="6.0.4" NoWarn="NU1903" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net452'">
Expand Down

0 comments on commit e805e2c

Please sign in to comment.