Skip to content

Commit 4b56242

Browse files
Merge pull request #52 from step-security/Raj-StepSecurity-patch-2
feat: Validate Updated Subscription Flow
2 parents 9af7c21 + 50232f4 commit 4b56242

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108649,7 +108649,7 @@ async function validateSubscription() {
108649108649
await axios$1.get(API_URL, { timeout: 3000 });
108650108650
}
108651108651
catch (error) {
108652-
if (isAxiosError(error) && error.response) {
108652+
if (isAxiosError(error) && error.response?.status === 403) {
108653108653
coreExports.error('Subscription is not valid. Reach out to [email protected]');
108654108654
process.exit(1);
108655108655
}

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function validateSubscription(): Promise<void> {
1515
try {
1616
await axios.get(API_URL, {timeout: 3000});
1717
} catch (error) {
18-
if (isAxiosError(error) && error.response) {
18+
if (isAxiosError(error) && error.response?.status === 403) {
1919
core.error(
2020
'Subscription is not valid. Reach out to [email protected]'
2121
);

0 commit comments

Comments
 (0)