Skip to content

Commit ea67577

Browse files
committed
fix: resolve Snyk Core parse error and ReDoS in test project dependencies
1 parent fe30677 commit ea67577

File tree

4 files changed

+118
-4
lines changed

4 files changed

+118
-4
lines changed

Contentstack.Management.Core.Tests/Contentstack.Management.Core.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<PackageReference Include="Moq" Version="4.20.72" />
2626
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.3.0" />
2727
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
28+
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
2829
</ItemGroup>
2930

3031
<ItemGroup>

Contentstack.Management.Core.Unit.Tests/Contentstack.Management.Core.Unit.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<PackageReference Include="AutoFixture.AutoMoq" Version="4.18.1" />
2121
<PackageReference Include="Moq" Version="4.20.72" />
2222
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.3.0" />
23+
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
2324
</ItemGroup>
2425

2526
<ItemGroup>

Contentstack.Management.Core/contentstack.management.core.csproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<!-- On non-Windows (e.g. macOS/Linux), build only netstandard2.0; .NET Framework (net471/net472) is Windows-only and reference assemblies are not available. -->
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('Windows'))">netstandard2.0;net471;net472</TargetFrameworks>
6-
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('Windows'))">netstandard2.0</TargetFrameworks>
3+
<!-- On non-Windows (e.g. macOS/Linux), build only netstandard2.0; .NET Framework (net471/net472) is Windows-only and reference assemblies are not available. -->
4+
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
5+
<TargetFrameworks>netstandard2.0;net471;net472</TargetFrameworks>
6+
</PropertyGroup>
7+
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
8+
<TargetFrameworks>netstandard2.0</TargetFrameworks>
9+
</PropertyGroup>
10+
<PropertyGroup>
711
<LangVersion>8.0</LangVersion>
812
<Nullable>enable</Nullable>
913
<Title>Contentstack Management</Title>

snyk.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"vulnerabilities": [],
3+
"ok": true,
4+
"dependencyCount": 63,
5+
"org": "contentstack-devex",
6+
"policy": "# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.\nversion: v1.25.1\nignore: {}\npatch: {}\n",
7+
"isPrivate": true,
8+
"licensesPolicy": {
9+
"severities": {},
10+
"orgLicenseRules": {
11+
"AGPL-1.0": {
12+
"licenseType": "AGPL-1.0",
13+
"severity": "high",
14+
"instructions": ""
15+
},
16+
"AGPL-3.0": {
17+
"licenseType": "AGPL-3.0",
18+
"severity": "high",
19+
"instructions": ""
20+
},
21+
"Artistic-1.0": {
22+
"licenseType": "Artistic-1.0",
23+
"severity": "medium",
24+
"instructions": ""
25+
},
26+
"Artistic-2.0": {
27+
"licenseType": "Artistic-2.0",
28+
"severity": "medium",
29+
"instructions": ""
30+
},
31+
"CDDL-1.0": {
32+
"licenseType": "CDDL-1.0",
33+
"severity": "medium",
34+
"instructions": ""
35+
},
36+
"CPOL-1.02": {
37+
"licenseType": "CPOL-1.02",
38+
"severity": "high",
39+
"instructions": ""
40+
},
41+
"EPL-1.0": {
42+
"licenseType": "EPL-1.0",
43+
"severity": "medium",
44+
"instructions": ""
45+
},
46+
"GPL-2.0": {
47+
"licenseType": "GPL-2.0",
48+
"severity": "high",
49+
"instructions": ""
50+
},
51+
"GPL-3.0": {
52+
"licenseType": "GPL-3.0",
53+
"severity": "high",
54+
"instructions": ""
55+
},
56+
"LGPL-2.0": {
57+
"licenseType": "LGPL-2.0",
58+
"severity": "medium",
59+
"instructions": ""
60+
},
61+
"LGPL-2.1": {
62+
"licenseType": "LGPL-2.1",
63+
"severity": "medium",
64+
"instructions": ""
65+
},
66+
"LGPL-3.0": {
67+
"licenseType": "LGPL-3.0",
68+
"severity": "medium",
69+
"instructions": ""
70+
},
71+
"MPL-1.1": {
72+
"licenseType": "MPL-1.1",
73+
"severity": "medium",
74+
"instructions": ""
75+
},
76+
"MPL-2.0": {
77+
"licenseType": "MPL-2.0",
78+
"severity": "medium",
79+
"instructions": ""
80+
},
81+
"MS-RL": {
82+
"licenseType": "MS-RL",
83+
"severity": "medium",
84+
"instructions": ""
85+
},
86+
"SimPL-2.0": {
87+
"licenseType": "SimPL-2.0",
88+
"severity": "high",
89+
"instructions": ""
90+
}
91+
}
92+
},
93+
"packageManager": "nuget",
94+
"ignoreSettings": {
95+
"adminOnly": false,
96+
"reasonRequired": false,
97+
"disregardFilesystemIgnores": false
98+
},
99+
"summary": "No known vulnerabilities",
100+
"filesystemPolicy": false,
101+
"uniqueCount": 0,
102+
"targetFile": "Contentstack.Management.Core/obj/project.assets.json",
103+
"projectName": "contentstack-management-dotnet",
104+
"foundProjectCount": 5,
105+
"displayTargetFile": "Contentstack.Management.Core/obj/project.assets.json",
106+
"hasUnknownVersions": false,
107+
"path": "/Users/om.pawar/Desktop/SDKs/contentstack-management-dotnet"
108+
}

0 commit comments

Comments
 (0)