---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [security](../index.md) / collectSecurityScanFiles

# Function: collectSecurityScanFiles()

> **collectSecurityScanFiles**(`paths`): `string`[]

Defined in: [packages/b2c-tooling-sdk/src/security/engine.ts:206](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/security/engine.ts#L206)

Collects server-side script files to scan. Explicit files are always
included; directories contribute the scripts inside the cartridges found
below them, skipping static, client, and dependency folders.

## Parameters

### paths

readonly `string`[]

## Returns

`string`[]
