Use git-credential-store instead of .extraheader

This commit is contained in:
Julius Lehmann 2024-06-10 18:45:12 +02:00
parent b80ff79f17
commit 6606fcd2c4
7 changed files with 133 additions and 96 deletions

View file

@ -25,6 +25,11 @@ export const SshKeyPath = core.getState('sshKeyPath')
*/
export const SshKnownHostsPath = core.getState('sshKnownHostsPath')
/**
* The credential store path for git-credential-store
*/
export const CredentialStorePath = core.getState('credentialStorePath')
/**
* Save the repository path so the POST action can retrieve the value.
*/
@ -58,3 +63,10 @@ export function setSafeDirectory() {
if (!IsPost) {
core.saveState('isPost', 'true')
}
/**
* Save the credential store path so the POST action can retrieve the value.
*/
export function setCredentialStorePath(credentialStorePath: string) {
core.saveState('credentialStorePath', credentialStorePath)
}