From cddc33b3e1ef1e33f8579cf3c869a051cce292d4 Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Fri, 4 Oct 2024 17:47:39 +0200 Subject: [PATCH] add debug msg --- dist/index.js | 3 +++ src/action.js | 2 ++ src/auth.js | 1 + 3 files changed, 6 insertions(+) diff --git a/dist/index.js b/dist/index.js index f9a44bf..f459282 100644 --- a/dist/index.js +++ b/dist/index.js @@ -18583,6 +18583,8 @@ async function exportSecrets() { const caCertificateRaw = core.getInput('caCertificate', { required: false }); if (caCertificateRaw != null) { defaultOptions.https.certificateAuthority = Buffer.from(caCertificateRaw, 'base64').toString(); + + core.debug('ℹ cert: \n'+defaultOptions.https.certificateAuthority); } 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(`payload: ${JSON.stringify(options)}`); /** @type {import('got').Response} */ let response; diff --git a/src/action.js b/src/action.js index 94c8f8e..0ea8cb1 100644 --- a/src/action.js +++ b/src/action.js @@ -52,6 +52,8 @@ async function exportSecrets() { const caCertificateRaw = core.getInput('caCertificate', { required: false }); if (caCertificateRaw != null) { defaultOptions.https.certificateAuthority = Buffer.from(caCertificateRaw, 'base64').toString(); + + core.debug('ℹ cert: \n'+defaultOptions.https.certificateAuthority); } const clientCertificateRaw = core.getInput('clientCertificate', { required: false }); diff --git a/src/auth.js b/src/auth.js index 69198d6..c02c812 100644 --- a/src/auth.js +++ b/src/auth.js @@ -120,6 +120,7 @@ async function getClientToken(client, method, path, payload) { }; core.debug(`Retrieving Vault Token from ${path} endpoint`); + core.debug(`payload: ${JSON.stringify(options)}`); /** @type {import('got').Response} */ let response;