From 3efadf1613a533c37475d47f5bd53db7cd773d69 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 07:06:03 +0000 Subject: [PATCH 1/2] Initial plan From b6ee1e1fd2a15b9c61b87659d39645736fa2c55c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 07:08:26 +0000 Subject: [PATCH 2/2] Add --no-gpg-sign to codeflow git commits --- src/Microsoft.DotNet.Darc/DarcLib/LocalGitClient.cs | 4 ++-- src/Microsoft.DotNet.Darc/DarcLib/RemoteRepoBase.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.DotNet.Darc/DarcLib/LocalGitClient.cs b/src/Microsoft.DotNet.Darc/DarcLib/LocalGitClient.cs index c3db933303..fdca4a940f 100644 --- a/src/Microsoft.DotNet.Darc/DarcLib/LocalGitClient.cs +++ b/src/Microsoft.DotNet.Darc/DarcLib/LocalGitClient.cs @@ -157,7 +157,7 @@ public async Task CommitAsync( (string Name, string Email)? author = null, CancellationToken cancellationToken = default) { - IEnumerable args = new[] { "commit", "-m", message }; + IEnumerable args = new[] { "commit", "--no-gpg-sign", "-m", message }; if (allowEmpty) { @@ -178,7 +178,7 @@ public async Task CommitAmendAsync( string repoPath, CancellationToken cancellationToken = default) { - var result = await _processManager.ExecuteGit(repoPath, ["commit", "--amend", "--no-edit"], cancellationToken: cancellationToken); + var result = await _processManager.ExecuteGit(repoPath, ["commit", "--amend", "--no-edit", "--no-gpg-sign"], cancellationToken: cancellationToken); result.ThrowIfFailed($"Failed to amend commit in {repoPath}"); } diff --git a/src/Microsoft.DotNet.Darc/DarcLib/RemoteRepoBase.cs b/src/Microsoft.DotNet.Darc/DarcLib/RemoteRepoBase.cs index d983a11269..3d8e23a5cb 100644 --- a/src/Microsoft.DotNet.Darc/DarcLib/RemoteRepoBase.cs +++ b/src/Microsoft.DotNet.Darc/DarcLib/RemoteRepoBase.cs @@ -104,7 +104,7 @@ protected async Task CommitFilesAsync( await _processManager.ExecuteGit(clonedRepo, ["add", filePath, "-f"]); } - var commitResult = await _processManager.ExecuteGit(clonedRepo, ["commit", "--allow-empty", "-m", commitMessage]); + var commitResult = await _processManager.ExecuteGit(clonedRepo, ["commit", "--allow-empty", "--no-gpg-sign", "-m", commitMessage]); commitResult.ThrowIfFailed($"Failed to commit changes on branch '{branch}'"); logger.LogInformation("Pushing branch {branch} to {remoteUri}", branch, remote);