diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fcf13b..7e8a499 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,9 +11,10 @@ jobs: runs-on: windows-latest steps: - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: 1.11 + distribution: 'temurin' + java-version: 17 - uses: actions/checkout@v2 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis diff --git a/.github/workflows/codacy.yml b/.github/workflows/codacy.yml index dc4030b..d10e4be 100644 --- a/.github/workflows/codacy.yml +++ b/.github/workflows/codacy.yml @@ -36,11 +36,11 @@ jobs: steps: # Checkout the repository to the GitHub Actions runner - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@main # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis - name: Run Codacy Analysis CLI - uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b + uses: codacy/codacy-analysis-cli-action@master with: # Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository # You can also omit the token and run the tools that support default configurations diff --git a/.github/workflows/securitycodescan.yml b/.github/workflows/securitycodescan.yml index 259f0c8..37b1e71 100644 --- a/.github/workflows/securitycodescan.yml +++ b/.github/workflows/securitycodescan.yml @@ -21,12 +21,12 @@ jobs: SCS: runs-on: windows-latest steps: - - uses: actions/checkout@v3 - - uses: nuget/setup-nuget@04b0c2b8d1b97922f67eca497d7cf0bf17b8ffe1 + - uses: actions/checkout@master + - uses: nuget/setup-nuget@v1 - uses: microsoft/setup-msbuild@v1.0.2 - name: Set up projects for analysis - uses: security-code-scan/security-code-scan-add-action@f8ff4f2763ed6f229eded80b1f9af82ae7f32a0d + uses: security-code-scan/security-code-scan-add-action@main - name: Restore dependencies run: dotnet restore src @@ -35,7 +35,7 @@ jobs: run: dotnet build --no-restore src - name: Convert sarif for uploading to GitHub - uses: security-code-scan/security-code-scan-results-action@cdb3d5e639054395e45bf401cba8688fcaf7a687 + uses: security-code-scan/security-code-scan-results-action@main - name: Upload sarif uses: github/codeql-action/upload-sarif@v2 diff --git a/src/ConsoleApplication/ConsoleApplication.csproj b/src/ConsoleApplication/ConsoleApplication.csproj index cf31089..027c216 100644 --- a/src/ConsoleApplication/ConsoleApplication.csproj +++ b/src/ConsoleApplication/ConsoleApplication.csproj @@ -2,7 +2,7 @@ Exe - net462;net47;net48;netcoreapp3.1;net6.0;net8.0 + net462;net47;net48;net6.0;net8.0 net8.0 disable True diff --git a/src/System.Net.IPNetwork/IPNetwork2.cs b/src/System.Net.IPNetwork/IPNetwork2.cs index 000412d..e1b8854 100644 --- a/src/System.Net.IPNetwork/IPNetwork2.cs +++ b/src/System.Net.IPNetwork/IPNetwork2.cs @@ -615,8 +615,8 @@ private static void InternalParse(bool tryParse, string network, ICidrGuess cidr if (sanitanize) { - network = Regex.Replace(network, @"[^0-9a-fA-F\.\/\s\:]+", string.Empty); - network = Regex.Replace(network, @"\s{2,}", " "); + network = Regex.Replace(network, @"[^0-9a-fA-F\.\/\s\:]+", string.Empty, RegexOptions.None, TimeSpan.FromMilliseconds(100)); + network = Regex.Replace(network, @"\s{2,}", " ", RegexOptions.None, TimeSpan.FromMilliseconds(100)); network = network.Trim(); } diff --git a/src/System.Net.IPNetwork/System.Net.IPNetwork.csproj b/src/System.Net.IPNetwork/System.Net.IPNetwork.csproj index 1c752b4..c7c53dc 100644 --- a/src/System.Net.IPNetwork/System.Net.IPNetwork.csproj +++ b/src/System.Net.IPNetwork/System.Net.IPNetwork.csproj @@ -1,8 +1,8 @@  - netstandard2.0;netstandard2.1;net462;net47;net48;netcoreapp3.1;net6.0;net8.0 - netstandard2.0;netstandard2.1;netcoreapp3.1;net6.0;net8.0 + netstandard2.0;netstandard2.1;net462;net47;net48;net6.0;net8.0 + netstandard2.0;netstandard2.1;net6.0;net8.0 true IPNetwork2 3.0.0 diff --git a/src/TestProject/TestProject.csproj b/src/TestProject/TestProject.csproj index ae35c2f..06e4d60 100644 --- a/src/TestProject/TestProject.csproj +++ b/src/TestProject/TestProject.csproj @@ -1,13 +1,11 @@ - net462;net47;net48;netcoreapp3.1;net6.0;net8.0 + net462;net47;net48;net6.0;net8.0 net8.0 - false - True false @@ -32,14 +30,6 @@ $(DefineConstants)TRACE;TRAVISCI - - $(DefineConstants)TRACE;TRAVISCI - - - - $(DefineConstants)TRACE;TRAVISCI - - $(DefineConstants)TRACE;TRAVISCI