fix(git): fix gpg commit signing (#30943)

This commit is contained in:
Craig Andrews 2024-08-21 12:20:56 -04:00 committed by GitHub
parent 1f3ab66d33
commit 1fb493ee7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ describe('util/git/private-key', () => {
expect(exec.exec).toHaveBeenCalledWith('git config commit.gpgsign true', {
cwd: repoDir,
});
expect(exec.exec).toHaveBeenCalledWith('git config gpg.format opengpg', {
expect(exec.exec).toHaveBeenCalledWith('git config gpg.format openpgp', {
cwd: repoDir,
});
});

View file

@ -55,7 +55,7 @@ abstract class PrivateKey {
}
class GPGKey extends PrivateKey {
protected readonly gpgFormat = 'opengpg';
protected readonly gpgFormat = 'openpgp';
protected async importKey(): Promise<string | undefined> {
const keyFileName = upath.join(os.tmpdir() + '/git-private-gpg.key');