Skip to content

Commit

Permalink
Fix component governance alerts (#4750)
Browse files Browse the repository at this point in the history
* Fix component governance alerts

* Refactor
  • Loading branch information
sebastienros authored Nov 23, 2023
1 parent c66f947 commit c838390
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions eng/packages/General.props
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
<PackageVersion Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageVersion Include="Microsoft.AspNetCore.Routing.Abstractions" Version="2.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.Routing" Version="2.2.2" />
<PackageVersion Include="System.IO.Pipelines" Version="4.5.1" />
<PackageVersion Include="System.Security.Cryptography.Xml" Version="4.7.1" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Net.Http" Condition="'$(TargetFramework)' == 'net462'" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net462'" >
<PackageReference Include="System.Net.Http" />

<!-- Direct dependencies as Microsoft.AspNetCore.Mvc.Testing references vulnerable versions. -->
<PackageReference Include="Microsoft.AspNetCore.Http" />
<PackageReference Include="System.IO.Pipelines" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@

<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<PackageReference Include="Microsoft.AspNetCore.Mvc" />

<!-- Direct dependencies as Microsoft.AspNetCore.Mvc references vulnerable versions. -->
<PackageReference Include="Microsoft.AspNetCore.Http" />
<PackageReference Include="System.IO.Pipelines" />
<PackageReference Include="System.Security.Cryptography.Xml" />
</ItemGroup>
</Project>

0 comments on commit c838390

Please sign in to comment.