From b16953d481183c3fd7f7c2e3e77d82451e3e474e Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 7 Apr 2024 19:59:46 +1000 Subject: [PATCH] Fix CVEs (#155) * refs and cleanup * Create Directory.Build.props * . --- build/_build.csproj.DotSettings | 5 ++++- src/Alba.Testing/Alba.Testing.csproj | 3 --- src/Alba/Alba.csproj | 9 +++------ src/Directory.Build.props | 8 ++++++++ src/IdentityServer.New/IdentityServer.New.csproj | 5 ++++- src/WebAppSecuredWithJwt/WebAppSecuredWithJwt.csproj | 4 ++-- 6 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 src/Directory.Build.props diff --git a/build/_build.csproj.DotSettings b/build/_build.csproj.DotSettings index eb3f4c27..c815d363 100644 --- a/build/_build.csproj.DotSettings +++ b/build/_build.csproj.DotSettings @@ -17,6 +17,8 @@ False <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> + <Policy><Descriptor Staticness="Instance" AccessRightKinds="Private" Description="Instance fields (private)"><ElementKinds><Kind Name="FIELD" /><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Static" AccessRightKinds="Private" Description="Static fields (private)"><ElementKinds><Kind Name="FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></Policy> True True True @@ -25,4 +27,5 @@ True True True - True + True + True diff --git a/src/Alba.Testing/Alba.Testing.csproj b/src/Alba.Testing/Alba.Testing.csproj index a6fe8c98..2aa8eeff 100644 --- a/src/Alba.Testing/Alba.Testing.csproj +++ b/src/Alba.Testing/Alba.Testing.csproj @@ -2,9 +2,6 @@ net6.0;net8.0 portable - Alba.Testing - Alba.Testing - diff --git a/src/Alba/Alba.csproj b/src/Alba/Alba.csproj index b4e826cc..54ae92d5 100644 --- a/src/Alba/Alba.csproj +++ b/src/Alba/Alba.csproj @@ -2,11 +2,8 @@ Supercharged integration testing for ASP.NET Core HTTP endpoints - Alba 8.0.0 net6.0;net7.0;net8.0 - Alba - Alba http://jasperfx.github.io/alba/ Apache-2.0 git @@ -27,17 +24,17 @@ - + - + - + diff --git a/src/Directory.Build.props b/src/Directory.Build.props new file mode 100644 index 00000000..cfdeba69 --- /dev/null +++ b/src/Directory.Build.props @@ -0,0 +1,8 @@ + + + + NU1901;NU1902;NU1903;NU1904 + all + low + + diff --git a/src/IdentityServer.New/IdentityServer.New.csproj b/src/IdentityServer.New/IdentityServer.New.csproj index 865af961..ab43d217 100644 --- a/src/IdentityServer.New/IdentityServer.New.csproj +++ b/src/IdentityServer.New/IdentityServer.New.csproj @@ -6,7 +6,10 @@ - + + + + diff --git a/src/WebAppSecuredWithJwt/WebAppSecuredWithJwt.csproj b/src/WebAppSecuredWithJwt/WebAppSecuredWithJwt.csproj index aecb40a7..f218ace4 100644 --- a/src/WebAppSecuredWithJwt/WebAppSecuredWithJwt.csproj +++ b/src/WebAppSecuredWithJwt/WebAppSecuredWithJwt.csproj @@ -5,9 +5,9 @@ - + - +