From b2a144d499f2fb42533e8f8c655e522d90b26e86 Mon Sep 17 00:00:00 2001 From: "Fotis Koutoulakis (@NlightNFotis)" Date: Thu, 23 May 2024 10:58:50 +0100 Subject: [PATCH] Add debug output to status-report.ts --- src/status-report.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/status-report.ts b/src/status-report.ts index 750d911d7..2ed6d38cf 100644 --- a/src/status-report.ts +++ b/src/status-report.ts @@ -388,6 +388,7 @@ export async function sendStatusReport( const client = getApiClient(); try { + core.debug("Sending status report to code scanning endpoint."); await client.request( "PUT /repos/:owner/:repo/code-scanning/analysis/status", { @@ -396,7 +397,9 @@ export async function sendStatusReport( data: statusReportJSON, }, ); + core.debug("Successfully completed sending of report to code scanning endpoint."); } catch (e) { + core.debug("Failed to send status report to code scanning endpoint."); console.log(e); if (isHTTPError(e)) { switch (e.status) {