fix: add yaml ssh secret for d518 git mirror
This commit is contained in:
@@ -131,7 +131,21 @@ export function nodeRuntimeGitMirrorGithubTransportEnv(mirror: NodeRuntimeGitMir
|
||||
|
||||
export function nodeRuntimeGitMirrorGithubTransportSummary(mirror: NodeRuntimeGitMirrorTargetSpec): Record<string, unknown> {
|
||||
const transport = mirror.githubTransport;
|
||||
if (transport.mode === "ssh") return { mode: "ssh", secretName: mirror.secretName, valuesPrinted: false };
|
||||
if (transport.mode === "ssh") {
|
||||
return {
|
||||
mode: "ssh",
|
||||
secretName: mirror.secretName,
|
||||
privateKeySecretKey: transport.privateKeySecretKey,
|
||||
privateKeySourceRef: transport.privateKeySourceRef,
|
||||
privateKeySourceKey: transport.privateKeySourceKey,
|
||||
privateKeySourceEncoding: transport.privateKeySourceEncoding,
|
||||
knownHostsSecretKey: transport.knownHostsSecretKey,
|
||||
knownHostsSourceRef: transport.knownHostsSourceRef,
|
||||
knownHostsSourceKey: transport.knownHostsSourceKey,
|
||||
knownHostsSourceEncoding: transport.knownHostsSourceEncoding,
|
||||
valuesPrinted: false,
|
||||
};
|
||||
}
|
||||
return {
|
||||
mode: "https",
|
||||
username: transport.username,
|
||||
|
||||
Reference in New Issue
Block a user