We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 432841c commit b9386b5Copy full SHA for b9386b5
src/main.ts
@@ -68,7 +68,7 @@ async function validateSubscription(): Promise<void> {
68
try {
69
await axios.get(API_URL, { timeout: 3000 });
70
} catch (error) {
71
- if (isAxiosError(error) && error.response) {
+ if (isAxiosError(error) && error.response?.status === 403) {
72
core.error('Subscription is not valid. Reach out to support@stepsecurity.io');
73
process.exit(1);
74
} else {
0 commit comments