mirror of
https://github.com/actions/checkout.git
synced 2025-12-18 11:21:36 +08:00
Set user.signingKey to ssh-key
This commit is contained in:
@@ -14,6 +14,7 @@ import {IGitSourceSettings} from './git-source-settings'
|
||||
|
||||
const IS_WINDOWS = process.platform === 'win32'
|
||||
const SSH_COMMAND_KEY = 'core.sshCommand'
|
||||
const SIGNING_KEY = 'user.signingKey'
|
||||
|
||||
export interface IGitAuthHelper {
|
||||
configureAuth(): Promise<void>
|
||||
@@ -269,6 +270,7 @@ class GitAuthHelper {
|
||||
// Configure core.sshCommand
|
||||
if (this.settings.persistCredentials) {
|
||||
await this.git.config(SSH_COMMAND_KEY, this.sshCommand)
|
||||
await this.git.config(SIGNING_KEY, this.sshKeyPath)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user