Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/DemaConsulting.NuGet.Caching/AuthFailureClassifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

using System;
using System.Text.RegularExpressions;

namespace DemaConsulting.NuGet.Caching;
Expand Down Expand Up @@ -49,7 +50,7 @@ internal static class AuthFailureClassifier
/// number) as an authentication failure.
/// </remarks>
private static readonly Regex HttpStatusCodePattern =
new(@"\b(401)\s*\(Unauthorized\)|\b(403)\s*\(Forbidden\)", RegexOptions.Compiled);
new(@"\b(401)\s*\(Unauthorized\)|\b(403)\s*\(Forbidden\)", RegexOptions.Compiled, TimeSpan.FromSeconds(1));

/// <summary>
/// Determines whether <paramref name="exception"/> (or any exception in its
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.28.0.143324">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.29.0.143774">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.7.0" />
<!-- WireMock.Net provides an in-process HTTP mock server used by the LocalIntegration tests
to simulate NuGet v3 and v2 feeds without hitting the network. -->
<PackageReference Include="WireMock.Net" Version="2.11.0" />
<PackageReference Include="WireMock.Net" Version="2.12.0" />
<!-- TEMPORARY PIN: WireMock.Net 2.11.0 transitively depends on NSwag.Core, which pulls in
Scriban.Signed 7.2.0 - a version with known moderate-severity vulnerabilities
(GHSA-6q7j-xr26-3h2c, GHSA-q6rr-fm2g-g5x8). Scriban is only used by NSwag's Swagger/OpenAPI
Expand All @@ -65,7 +65,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.28.0.143324">
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.29.0.143774">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Loading