Skip to content

Commit 8c15c43

Browse files
author
thyldrm
committed
fix(ci): add required timeout and pollInterval to backend request
- Backend validation requires timeout and pollInterval fields - These were accidentally removed in client-side polling refactor - Send default values (timeout: 1800, pollInterval: 10) to satisfy validation - These values are not used for actual polling (client-side handles it) Fixes: 400 Validation failed error after v1.12.2 Version: 1.12.2 → 1.12.3
1 parent c089d01 commit 8c15c43

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codethreat/appsec-cli",
3-
"version": "1.12.2",
3+
"version": "1.12.3",
44
"description": "CodeThreat AppSec CLI for CI/CD integration and automated security scanning",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/lib/api-client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ export class CodeThreatApiClient {
180180
organizationSlug: organizationSlug,
181181
scanTypes: options.scanTypes,
182182
wait: false, // ALWAYS false - we do client-side polling to avoid serverless timeouts
183+
timeout: 1800, // Send to backend (required by validation) but not used for polling
184+
pollInterval: 10, // Send to backend (required by validation) but not used for polling
183185
};
184186

185187
// Only add optional fields if they have values

0 commit comments

Comments
 (0)