From 1c6bba381528e61f43fc1fa9c0d71fd513974e73 Mon Sep 17 00:00:00 2001 From: h0x0er Date: Mon, 26 Sep 2022 22:23:11 +0530 Subject: [PATCH] moving correlationID to top --- src/setup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/setup.ts b/src/setup.ts index 6fda8aa..9043d44 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -26,6 +26,8 @@ import { cacheFile, cacheKey, CompressionMethod, getCacheEntry } from "./cache"; var api_url = `https://${env}.api.stepsecurity.io/v1`; var web_url = "https://app.stepsecurity.io"; + console.log(`Step Security Job Correlation ID: ${correlation_id}`); + const confg = { repo: process.env["GITHUB_REPOSITORY"], run_id: process.env["GITHUB_RUN_ID"], @@ -98,8 +100,6 @@ import { cacheFile, cacheKey, CompressionMethod, getCacheEntry } from "./cache"; verifyChecksum(downloadPath); // NOTE: verifying agent's checksum, before extracting const extractPath = await tc.extractTar(downloadPath); - console.log(`Step Security Job Correlation ID: ${correlation_id}`); - if (!confg.disable_telemetry || confg.egress_policy === "audit") { common.printInfo(web_url); }