Skip to content

Commit

Permalink
Added packages fixing transitive vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
aivascu committed Feb 18, 2024
1 parent 032f479 commit 611d8df
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 8 deletions.
11 changes: 10 additions & 1 deletion Src/AutoFakeItEasy/AutoFakeItEasy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@

<ItemGroup>
<PackageReference Include="FakeItEasy" Version="[6.0.0,9.0.0)" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" Condition=" '$(TargetFramework)'=='netstandard2.0' " />
</ItemGroup>

<!-- Dependencies added due to transitive vulnerabilities in FakeItEasy -->
<ItemGroup Condition=" '$(TargetFramework)'=='netstandard2.0' ">
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net5.0'">
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions Src/AutoFixture.NUnit3/AutoFixture.NUnit3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
  <PackageReference Include="NUnit" Version="[3.7.0,4.0.0)" />
</ItemGroup>

<!-- Dependencies added due to transitive vulnerabilities in NUnit -->
<ItemGroup Condition="'$(TargetFramework)'=='net5.0'">
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Security.Cryptography.X509Certificates" Version="4.3.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AutoFixture\AutoFixture.csproj" />
</ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions Src/AutoFixture.xUnit2/AutoFixture.xUnit2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
<PackageReference Include="xunit.extensibility.core" Version="[2.2.0,3.0.0)" />
</ItemGroup>

<!-- Dependencies added due to transitive vulnerabilities in xUnit -->
<ItemGroup Condition="'$(TargetFramework)'=='net5.0'">
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Security.Cryptography.X509Certificates" Version="4.3.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AutoFixture\AutoFixture.csproj" />
</ItemGroup>
Expand Down
8 changes: 6 additions & 2 deletions Src/AutoFixture/AutoFixture.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
<ItemGroup>
<PackageReference Include="Fare" Version="[2.2.1,3.0.0)" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.4.0" />
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.0.0" Condition=" '$(TargetFramework)'=='net462' Or '$(TargetFramework)'=='netstandard2.0' " />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" Condition=" '$(TargetFramework)'=='net462' Or '$(TargetFramework)'=='netstandard2.0' " />
</ItemGroup>

<!-- Dependencies added to support newer BCL types in older version of .NET -->
<ItemGroup Condition="'$(TargetFramework)'=='net462' Or '$(TargetFramework)'=='netstandard2.0'">
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.0.0" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" />
</ItemGroup>
</Project>
8 changes: 7 additions & 1 deletion Src/AutoFoq/AutoFoq.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@
<PackageReference Include="FSharp.Core" Version="4.2.3" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<!-- Dependencies added due to transitive vulnerabilities in Foq -->
<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<PackageReference Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net5.0'">
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Security.Cryptography.X509Certificates" Version="4.3.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AutoFixture\AutoFixture.csproj" />
</ItemGroup>
Expand Down
7 changes: 6 additions & 1 deletion Src/AutoMoq/AutoMoq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@

<ItemGroup>
<PackageReference Include="Moq" Version="[4.7.49,5.0.0)" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" Condition=" '$(TargetFramework)'=='netstandard2.0' " />
</ItemGroup>

<!-- Dependencies added due to transitive vulnerabilities in Moq -->
<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0' Or '$(TargetFramework)'=='net5.0'">
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 6 additions & 2 deletions Src/AutoNSubstitute/AutoNSubstitute.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@

<ItemGroup>
<PackageReference Include="NSubstitute" Version="[4.0.0,6.0.0)" />
<PackageReference Include="System.Net.Http" Version="4.3.4" Condition="'$(TargetFramework)'=='net462' Or '$(TargetFramework)'=='netstandard2.0'" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" Condition="'$(TargetFramework)'=='net462' Or '$(TargetFramework)'=='netstandard2.0'" />
</ItemGroup>

<!-- Dependencies added due to transitive vulnerabilities in NSubstitute -->
<ItemGroup>
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>

<ItemGroup>
Expand Down
7 changes: 6 additions & 1 deletion Src/Idioms.FsCheck/Idioms.FsCheck.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
<ItemGroup>
<PackageReference Include="FsCheck" Version="[2.14.0,3.0.0)" />
<PackageReference Include="FSharp.Core" Version="4.2.3" />
<PackageReference Include="System.Net.Http" Version="4.3.4" Condition="'$(TargetFramework)'=='net462' Or '$(TargetFramework)'=='netstandard2.0'" />
</ItemGroup>

<!-- Dependencies added due to transitive vulnerabilities in FsCheck -->
<ItemGroup>
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Security.Cryptography.X509Certificates" Version="4.3.2" Condition="'$(TargetFramework)'=='net5.0'" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 611d8df

Please sign in to comment.