diff --git a/src/Commands/RunScan.ts b/src/Commands/RunScan.ts index bd6c8836..eb6f8862 100644 --- a/src/Commands/RunScan.ts +++ b/src/Commands/RunScan.ts @@ -94,6 +94,12 @@ export class RunScan implements CommandModule { string: true, describe: 'ID of the project' }) + .option('template', { + alias: 'tp', + requiresArg: false, + string: true, + describe: 'ID of the template' + }) .option('module', { default: Module.DAST, requiresArg: true, @@ -178,6 +184,7 @@ export class RunScan implements CommandModule { module: args.module, authObjectId: args.auth, projectId: args.project, + templateId: args.template, buckets: args.bucket, hostsFilter: args.hostFilter, headers: Helpers.parseHeaders(args.header as string[]), diff --git a/src/Scan/Scans.ts b/src/Scan/Scans.ts index ab054e29..0704c1a5 100644 --- a/src/Scan/Scans.ts +++ b/src/Scan/Scans.ts @@ -138,6 +138,7 @@ export interface ScanConfig { module: Module; authObjectId?: string; projectId?: string; + templateId?: string; discoveryTypes?: Discovery[]; tests?: TestType[]; buckets?: string[];