Preparing scan payloads

Updated on 2026-11-25

ZIP layout and lockfiles.

Codrael and Deprael analyze source trees as uploaded — no compile or build is required on the portal path. Upload a ZIP or tar archive (or connect a Git repo) that contains application source plus dependency manifests.

Global rules

TopicDetail
Max upload sizeDefault 100 MiB per archive (uploadMaxBytes() in src/lib/uploads/source-archive.ts). Override with SECURARO_SOURCE_UPLOAD_MAX_BYTES.
Formats.zip, .tar, .tar.gz, .tgz (enforced on POST /api/apps/{slug}/source-upload).
TTLUploads expire after 24 hours if not consumed by a scan.
EncryptionStored encrypted at rest under SECURARO_UPLOAD_DIR (default .data/uploads).
GitHub “Download ZIP”Use the archive as-is — the portal does not fetch GitHub for you; you upload the ZIP through Scan setup or the API (sourceUploadId).

Always exclude

  • node_modules, .git, build output (dist/, build/, target/, bin/, obj/)
  • Local secrets (.env, credentials JSON, private keys)
  • Huge artifacts (media, vendored binaries) unless needed for mobile SAST

Always include (for best results)

  • Application source
  • Lockfiles / manifests Deprael discovers (see Deprael SCA)
  • For monorepos: include the module roots you want scanned (or scan per-app from Apps)
flowchart LR
  A[Source tree] --> B[ZIP or tar]
  B --> C[Portal upload or API]
  C --> D[Encrypt + store]
  D --> E[Worker extracts]
  E --> F[Codrael + Deprael]

Zip commands

From the repository root (adjust paths to your module):

Linux / macOS

zip -r securaro-source.zip . \
  -x '*/node_modules/*' -x '*/.git/*' -x '*/target/*' -x '*/bin/*' -x '*/obj/*' -x '*/dist/*' -x '*/build/*' -x '*/vendor/*'
tar -czvf securaro-source.tgz --exclude=node_modules --exclude=.git \
  --exclude=target --exclude=bin --exclude=obj --exclude=dist --exclude=build .

Windows PowerShell (run from repo root)

Compress-Archive -Path * -DestinationPath securaro-source.zip -Force
# Remove large folders first, or zip specific folders:
# Compress-Archive -Path .\src, .\pom.xml, .\package-lock.json -DestinationPath securaro-source.zip

Per-language guidance

Java (Maven / Gradle)

IncludeExclude
src/, pom.xml, build.gradle(.kts), settings.gradle, lockfiles (gradle.lockfile)target/, .gradle/ caches, IDE metadata
Wrapper scripts mvnw, gradlew (Deprael may invoke them when present)Compiled *.class

Lockfile tips: commit package-lock.json equivalents — for JVM, prefer Gradle lockfiles or resolved pom.xml with parent BOMs. Worker resolution uses mvn or gradlew when available in the extracted tree.

Checklist

Step✓
Sources under src/main (and modules)
Root pom.xml or Gradle build files
No target/ directory
Lockfile or wrapper for reproducible SCA

C# / .NET

IncludeExclude
*.cs, *.csproj, *.sln, Razor viewsbin/, obj/, packages/ (old)
packages.lock.json, Directory.Packages.propsSecrets in appsettings.Development.json if sensitive

Checklist

Step✓
Project/solution files
packages.lock.json when using lock mode
No bin/ / obj/

JavaScript / TypeScript

IncludeExclude
.js, .ts, .jsx, .tsx, package.jsonnode_modules/, .next/, dist/
package-lock.json, yarn.lock, or pnpm-lock.yaml

Checklist

Step✓
Committed lockfile at app root
Source not only bundled output
node_modules excluded from ZIP

Python

IncludeExclude
*.py, requirements*.txt, Pipfile.lock, poetry.lock, uv.lock, pyproject.toml.venv/, venv/, __pycache__/

Checklist

Step✓
Lockfile or pinned requirements
Application package tree
No virtualenv in archive

PHP

IncludeExclude
*.php, composer.json, composer.lockvendor/ (re-resolve on worker if only composer.json)

Go

IncludeExclude
*.go, go.mod, go.sumVendor optional; include if you vendor

Checklist

Step✓
go.sum committed
Module root in ZIP

Monorepos

  • Create one App per deployable or scan from the subdirectory by zipping that subtree.
  • Deprael walks up to 8 directory levels by default (discoverManifests maxDepth).
  • Nested package.json files are skipped when a root npm lock exists (see manifests.ts).

Per-language checklist summary

LanguageSourceLock / manifestExclude dirs
Javasrc/, .javapom.xml, Gradle lockstarget/, .git
C#.cs, Razorpackages.lock.json, .csprojbin/, obj/
JS/TS.ts(x), .js(x)npm/yarn/pnpm locknode_modules/
Python.pyrequirements / poetry / uv lockvenv/
PHP.phpcomposer.lockvendor/ (optional)
Go.gogo.mod, go.sum—

Next: Submitting scans.

Documentation | Securaro