Borehole · Project · free tier
triggerdotdev/trigger.dev
Free reading: not for reliance
9d38ff5 · 8,202 commits · 6,572 files
Read 2026-10-04

triggerdotdev/trigger.dev: technical due diligence, read from its repository

What Borehole read in triggerdotdev/trigger.dev's code and history at 9d38ff5: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturityadequate
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • LICENSE: Relicensed: Apache-2.0 → MIT (2023-01-31) → MPL-2.0 (2023-06-23) → Apache-2.0 (2023-06-26)
  • .gitmodules:1: 1 submodule(s) this survey does not read: internal-packages/otlp-importer/protos

Architecture & Codebase — including AI provenance

strong
01.6

packages/trigger-sdk/src/v3/ai.ts is 14,012 lines, 170× this codebase's median file

adequate

The median source file here is 82 lines. 107 files exceed 1,000 lines, the largest being 14,012. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.

Evidence
packages/trigger-sdk/src/v3/ai.ts:1 — 14,012 lines (170× median)
internal-packages/tsql/src/grammar/TSQLParser.ts:1 — 11,733 lines (143× median)
internal-packages/run-engine/src/run-queue/index.ts:1 — 8,776 lines (107× median)
apps/webapp/app/utils/tablerIcons.ts:1 — 4,823 lines (58× median)
internal-packages/tsql/src/query/printer.ts:1 — 3,640 lines (44× median)

Engineering Process & SDLC Maturity

adequate
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (packages/core/src/v3/apiClient/streamBatchItems.test.ts). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

02.24

7% of recent commits change more than 2,000 lines

adequate

164 of 2434 commits in the last 24 months changed over 2,000 lines of code, not counting reformatting, renames, vendored or generated code. A change that size is rarely reviewed line by line. Ask how they were reviewed, and what made them that large.

Evidence
164 commits over 2,000 lines

Product & Engineering Maturity

adequate
04.3

193 direct dependencies in a single manifest

adequate

apps/webapp/package.json declares 193 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.

04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, v4.6.4, is not on the branch this survey read; the newest release on it is v4.6.3. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag v4.6.4

Security & Reliability Posture

adequate
05.1

8 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings

adequate

Strings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key.

Evidence
5 cited: Slack token, where fakes are usual
05.6

1 Dockerfile runs the application as root

adequate

No USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.

Evidence
base-images/Dockerfile — runs as root
05.25

6 environment files are committed

adequate

.env.schema, apps/supervisor/.env.schema, apps/webapp/.env.schema and more are tracked in git. Environment files are where credentials usually live, and committing one usually means nobody decided how secrets reach the running application. Whatever is in it is in the history for good. Check 05.1 says whether it holds anything credential-shaped.

Evidence
.env.schema — committed environment file
apps/supervisor/.env.schema — committed environment file
apps/webapp/.env.schema — committed environment file
05.20

6 SQL statements built from strings

adequate

6 places in product code build SQL by formatting or joining strings rather than passing parameters, and in 5 of them a value, not a table or column name, goes into the string. Where any of those values comes from a request, it is an injection point. Each site needs a look; the fix, parameters, is small.

Evidence
internal-packages/replication/src/client.ts:737 — SQL built from a string
internal-packages/replication/src/client.ts:757 — SQL built from a string
internal-packages/replication/src/client.ts:846 — SQL built from a string
05.26

75 locked dependencies have published vulnerabilities, 32 high or critical in what ships

adequate

75 of 2,998 locked dependencies match 157 published advisories in OSV, 57 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version.

Evidence
pnpm-lock.yaml — next 16.2.6: GHSA-2xp9-vwfh-vxw4 (critical), fixed in 16.3.3; a development dependency
pnpm-lock.yaml — @grpc/grpc-js 1.12.7: GHSA-m9gg-hp2v-232j (high), fixed in 1.13.6
pnpm-lock.yaml — @modelcontextprotocol/sdk 1.25.2: GHSA-345p-7cg4-v4c7 (high), fixed in 1.26.0
05.49

The production build publishes source maps

adequate

The build configuration emits source maps for production, so the original source, with its comments and structure, is downloadable by every visitor. Upload them to an error tracker and keep them off the public server instead.

Evidence
apps/webapp/vite.config.ts:82 — source maps in a production build
05.60

Relicensed: Apache-2.0 → MIT (2023-01-31) → MPL-2.0 (2023-06-23) → Apache-2.0 (2023-06-26)

adequate

The root licence changed 3 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.

Evidence
LICENSE — Apache-2.0 from 2022-11-30
LICENSE — MIT from 2023-01-31
LICENSE — MPL-2.0 from 2023-06-23
LICENSE — Apache-2.0 from 2023-06-26
05.65

37 advisories against this project in the last 24 months, 23 high or critical

adequate

The newest was published on 2026-10-02. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 36 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 4.6.3. Answer lives in: the release you run, set against each fixed version.

Evidence
2026-10-02: GHSA-qwrm-2cq8-xfr8 (high), fixed in >= 4.7.0: Authorize parent runs before attaching batch-created waitpoints
2026-09-16: GHSA-pc95-gc74-wg87 (moderate), fixed in >= 4.6.2: Public session tokens can overwrite own server-authored chat snapshots
2026-09-14: GHSA-xrp6-5fpv-4fxf (high), fixed in >= 4.6.0: Missing run authorization allows cross-tenant suspension and resume-data injection
2026-09-14: GHSA-4gjx-f5hj-678x (high), fixed in >= 4.6.0: Restricted additional API keys can read the environment root secret via the env-var dump
2026-09-14: GHSA-wpp9-mq73-fhqm (low), fixed in >= 4.6.0: Dashboard Agent stores a delegated user token in session input records readable with the chat access token

Observability & Operations

adequate
06.2

No structured logging library is in use

adequate

Nothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.

Evidence
searched 5,875 files for 10 structured logging libraries; 0 matched
06.14

Readiness and liveness probes are identical in 5 of 6 workloads

adequate

Both probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.

Evidence
hosting/k8s/helm/templates/clickhouse.yaml — same probe endpoint twice
hosting/k8s/helm/templates/electric.yaml — same probe endpoint twice
hosting/k8s/helm/templates/registry.yaml — same probe endpoint twice
06.33

5 of 6 deployments run a single replica

adequate

5 deployments set `replicas: 1`, and nothing (an autoscaler, a disruption budget) adds more. Every deploy and every node drain is downtime, and the availability the buyer inherits has a ceiling.

06.17

The code branches on the environment's name at 17 places

adequate

17 places outside configuration test whether they are running in production or staging. Staging then does not exercise production's code, and each deploy is the first run of those branches. Differences belong in configuration the code reads, not in the code.

Evidence
apps/webapp/app/components/StaleAssetRecovery.tsx:126 — branch on the environment name
apps/webapp/app/components/StaleAssetRecovery.tsx:126 — branch on the environment name
apps/webapp/app/components/StaleAssetRecovery.tsx:127 — branch on the environment name

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on triggerdotdev/trigger.dev: every dimension, the questions for the room, and the audit log.

Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.