mirror of
https://github.com/actions/checkout.git
synced 2025-06-08 17:49:03 +00:00
Set user.signingKey
to ssh-key
This commit is contained in:
parent
8f4b7f8486
commit
b8a48d8f8e
3 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue