Skip to content

Commit d89d82a

Browse files
github-actions[bot]CopilotPureWeen
authored
[main] Workaround REVOCATION in .NET 10 by setting DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT (#30514)
* Initial plan * Add DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT environment variable Co-authored-by: PureWeen <[email protected]> * Update copilot-setup-steps.yml --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: PureWeen <[email protected]> Co-authored-by: Shane Neuville <[email protected]>
1 parent db405d0 commit d89d82a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
echo "$GITHUB_WORKSPACE/.dotnet" >> "$GITHUB_PATH"
3636
echo "DOTNET_ROOT=$GITHUB_WORKSPACE/.dotnet" >> "$GITHUB_ENV"
3737
echo "DOTNET_INSTALL_DIR=$GITHUB_WORKSPACE/.dotnet" >> "$GITHUB_ENV"
38+
echo "DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT=true" >> "$GITHUB_ENV"
3839
3940
- name: Ensure we are using the correct .NET
4041
shell: pwsh

eng/cake/dotnet.cake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ Dictionary<string, string> GetDotNetEnvironmentVariables()
607607
envVariables.Add("DOTNET_ROOT", dotnet);
608608
envVariables.Add("DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR", dotnet);
609609
envVariables.Add("DOTNET_MULTILEVEL_LOOKUP", "0");
610+
envVariables.Add("DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT", "true");
610611
envVariables.Add("MSBuildEnableWorkloadResolver", "true");
611612

612613
var existingPath = EnvironmentVariable("PATH");
@@ -629,6 +630,7 @@ void SetDotNetEnvironmentVariables(string dotnetDir = null)
629630
SetEnvironmentVariable("DOTNET_ROOT", dotnet);
630631
SetEnvironmentVariable("DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR", dotnet);
631632
SetEnvironmentVariable("DOTNET_MULTILEVEL_LOOKUP", "0");
633+
SetEnvironmentVariable("DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT", "true");
632634
SetEnvironmentVariable("MSBuildEnableWorkloadResolver", "true");
633635
SetEnvironmentVariable("PATH", dotnet, prepend: true);
634636

0 commit comments

Comments
 (0)