Skip to content

Enable control flow guard for native AOT tools - #67106

Merged
wtgodbe merged 3 commits into
mainfrom
damianedwards/control-flow-guard
Jun 10, 2026
Merged

wtgodbe merged 3 commits into
mainfrom
damianedwards/control-flow-guard

Conversation

@DamianEdwards

Copy link
Copy Markdown
Member

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

Copilot AI review requested due to automatic review settings June 9, 2026 23:59
@DamianEdwards
DamianEdwards requested review from a team and wtgodbe as code owners June 9, 2026 23:59
@github-actions github-actions Bot added the area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI label Jun 9, 2026

@wtgodbe wtgodbe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo googletest submodule change

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-secrets NativeAOT publish.
  • Enable CFG for the dotnet-user-jwts NativeAOT publish.
  • Enable CFG for the dotnet-dev-certs NativeAOT 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.

@DamianEdwards

Copy link
Copy Markdown
Member Author

Man how does this rubbish get in, I even did this one by hand lol

@wtgodbe

wtgodbe commented Jun 10, 2026

Copy link
Copy Markdown
Member

git checkout origin/main -- ./src/submodules/googletest should fix

@DamianEdwards

Copy link
Copy Markdown
Member Author

thx @wtgodbe, done

@danroth27 danroth27 changed the title Enable control flow guard for native AOT tols Enable control flow guard for native AOT tools Jun 10, 2026
@DamianEdwards
DamianEdwards enabled auto-merge (squash) June 10, 2026 19:05
@wtgodbe
wtgodbe disabled auto-merge June 10, 2026 22:45
@wtgodbe
wtgodbe merged commit da04fcb into main Jun 10, 2026
18 of 25 checks passed
@wtgodbe
wtgodbe deleted the damianedwards/control-flow-guard branch June 10, 2026 22:45
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants