Skip to content

Commit b9386b5

Browse files
Update main.ts
1 parent 432841c commit b9386b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function validateSubscription(): Promise<void> {
6868
try {
6969
await axios.get(API_URL, { timeout: 3000 });
7070
} catch (error) {
71-
if (isAxiosError(error) && error.response) {
71+
if (isAxiosError(error) && error.response?.status === 403) {
7272
core.error('Subscription is not valid. Reach out to support@stepsecurity.io');
7373
process.exit(1);
7474
} else {

0 commit comments

Comments
 (0)