add debug msg

This commit is contained in:
2024-10-05 21:47:08 +02:00
parent 2caae9e34b
commit cddc33b3e1
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -18583,6 +18583,8 @@ async function exportSecrets() {
const caCertificateRaw = core.getInput('caCertificate', { required: false }); const caCertificateRaw = core.getInput('caCertificate', { required: false });
if (caCertificateRaw != null) { if (caCertificateRaw != null) {
defaultOptions.https.certificateAuthority = Buffer.from(caCertificateRaw, 'base64').toString(); defaultOptions.https.certificateAuthority = Buffer.from(caCertificateRaw, 'base64').toString();
core.debug(' cert: \n'+defaultOptions.https.certificateAuthority);
} }
const clientCertificateRaw = core.getInput('clientCertificate', { required: false }); const clientCertificateRaw = core.getInput('clientCertificate', { required: false });
@@ -18885,6 +18887,7 @@ async function getClientToken(client, method, path, payload) {
}; };
core.debug(`Retrieving Vault Token from ${path} endpoint`); core.debug(`Retrieving Vault Token from ${path} endpoint`);
core.debug(`payload: ${JSON.stringify(options)}`);
/** @type {import('got').Response<VaultLoginResponse>} */ /** @type {import('got').Response<VaultLoginResponse>} */
let response; let response;
+2
View File
@@ -52,6 +52,8 @@ async function exportSecrets() {
const caCertificateRaw = core.getInput('caCertificate', { required: false }); const caCertificateRaw = core.getInput('caCertificate', { required: false });
if (caCertificateRaw != null) { if (caCertificateRaw != null) {
defaultOptions.https.certificateAuthority = Buffer.from(caCertificateRaw, 'base64').toString(); defaultOptions.https.certificateAuthority = Buffer.from(caCertificateRaw, 'base64').toString();
core.debug(' cert: \n'+defaultOptions.https.certificateAuthority);
} }
const clientCertificateRaw = core.getInput('clientCertificate', { required: false }); const clientCertificateRaw = core.getInput('clientCertificate', { required: false });
+1
View File
@@ -120,6 +120,7 @@ async function getClientToken(client, method, path, payload) {
}; };
core.debug(`Retrieving Vault Token from ${path} endpoint`); core.debug(`Retrieving Vault Token from ${path} endpoint`);
core.debug(`payload: ${JSON.stringify(options)}`);
/** @type {import('got').Response<VaultLoginResponse>} */ /** @type {import('got').Response<VaultLoginResponse>} */
let response; let response;