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
| Topic | Detail |
|---|
| Max upload size | Default 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). |
| TTL | Uploads expire after 24 hours if not consumed by a scan. |
| Encryption | Stored 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)
| Include | Exclude |
|---|
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
| Include | Exclude |
|---|
*.cs, *.csproj, *.sln, Razor views | bin/, obj/, packages/ (old) |
packages.lock.json, Directory.Packages.props | Secrets in appsettings.Development.json if sensitive |
Checklist
| Step | ✓ |
|---|
| Project/solution files | |
packages.lock.json when using lock mode | |
No bin/ / obj/ | |
JavaScript / TypeScript
| Include | Exclude |
|---|
.js, .ts, .jsx, .tsx, package.json | node_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
| Include | Exclude |
|---|
*.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
| Include | Exclude |
|---|
*.php, composer.json, composer.lock | vendor/ (re-resolve on worker if only composer.json) |
Go
| Include | Exclude |
|---|
*.go, go.mod, go.sum | Vendor 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
| Language | Source | Lock / manifest | Exclude dirs |
|---|
| Java | src/, .java | pom.xml, Gradle locks | target/, .git |
| C# | .cs, Razor | packages.lock.json, .csproj | bin/, obj/ |
| JS/TS | .ts(x), .js(x) | npm/yarn/pnpm lock | node_modules/ |
| Python | .py | requirements / poetry / uv lock | venv/ |
| PHP | .php | composer.lock | vendor/ (optional) |
| Go | .go | go.mod, go.sum | — |
Next: Submitting scans.