diff --git a/dist/main.js b/dist/main.js index 089081a..dc913ce 100644 --- a/dist/main.js +++ b/dist/main.js @@ -108649,7 +108649,7 @@ async function validateSubscription() { await axios$1.get(API_URL, { timeout: 3000 }); } catch (error) { - if (isAxiosError(error) && error.response) { + if (isAxiosError(error) && error.response?.status === 403) { coreExports.error('Subscription is not valid. Reach out to support@stepsecurity.io'); process.exit(1); } diff --git a/src/main.ts b/src/main.ts index ac66422..0409329 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,7 +15,7 @@ async function validateSubscription(): Promise { try { 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' );