Repository navigation
Enable control flow guard for native AOT tools - #67106
Merged
Merged
Conversation
wtgodbe
requested changes
Jun 10, 2026
wtgodbe
left a comment
Member
There was a problem hiding this comment.
Please undo googletest submodule change
Contributor
There was a problem hiding this comment.
Pull request overview
Enables Control Flow Guard (CFG) for the ASP.NET Core .NET SDK-bundled NativeAOT CLI tools to address BinSkim findings, aligning these tools with NativeAOT security guidance.
Changes:
- Enable CFG for the
dotnet-user-secretsNativeAOT publish. - Enable CFG for the
dotnet-user-jwtsNativeAOT publish. - Enable CFG for the
dotnet-dev-certsNativeAOT publish.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Tools/dotnet-user-secrets/src/dotnet-user-secrets.csproj | Sets ControlFlowGuard to Guard for NativeAOT publish builds. |
| src/Tools/dotnet-user-jwts/src/dotnet-user-jwts.csproj | Sets ControlFlowGuard to Guard for NativeAOT publish builds. |
| src/Tools/dotnet-dev-certs/src/dotnet-dev-certs.csproj | Sets ControlFlowGuard to Guard for NativeAOT publish builds. |
Member
Author
|
Man how does this rubbish get in, I even did this one by hand lol |
Member
|
|
Member
Author
|
thx @wtgodbe, done |
wtgodbe
approved these changes
Jun 10, 2026
cincuranet
approved these changes
Jun 10, 2026
DamianEdwards
enabled auto-merge (squash)
June 10, 2026 19:05
marcpopMSFT
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable control flow guard for native AOT tools
Enables control flow guard for native AOT tools to fix binskim errors. Based on dotnet/sdk#54171
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/3014971