From aa72e94663e76927223b829731df444fec4b25de Mon Sep 17 00:00:00 2001 From: Raj-StepSecurity Date: Wed, 20 Aug 2025 11:38:41 +0530 Subject: [PATCH] Update main.ts --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index f7c28a7..044dc39 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,9 +5,9 @@ async function validateSubscription(): Promise { const API_URL = `https://agent.api.stepsecurity.io/v1/github/${process.env.GITHUB_REPOSITORY}/actions/subscription`; try { - await axios.get(API_URL, { timeout: 3000 }); + await axios.get(API_URL, {timeout: 3000}); } catch (error) { - if (isAxiosError(error) && error.response) { + if (isAxiosError(error) && error.response?.status === 403) { core.error('Subscription is not valid. Reach out to support@stepsecurity.io'); process.exit(1); } else {