Read 2026-10-04
codeberg.org/forgejo/forgejo: technical due diligence, read from its repository
What Borehole read in codeberg.org/forgejo/forgejo's code and history at 994e539: 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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | adequate |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
LICENSE: Relicensed: MIT → BSD-3-Clause (2014-03-25) → MIT (2014-11-06) → GPL-3.0 (2024-08-22)
Architecture & Codebase — including AI provenance
adequaterouters/web/repo/issue.go is 3,886 lines, 42× this codebase's median file
adequateThe median source file here is 92 lines. 30 files exceed 1,000 lines, the largest being 3,886. 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.
routers/web/repo/issue.go:1 — 3,886 lines (42× median) |
modules/setting/disposable_email_domain_data.go:1 — 3,812 lines (41× median) |
modules/emoji/emoji_data.go:1 — 3,405 lines (37× median) |
routers/web/repo/pull.go:1 — 2,092 lines (22× median) |
routers/api/v1/repo/action.go:1 — 1,996 lines (21× median) |
1 base image floats: no version, or `latest`
adequate1 of 3 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.
Dockerfile:1 — base image without a version |
Engineering Process & SDLC Maturity
strongTests are retried until they pass
adequateThe suite is configured to retry failing tests (playwright.config.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.
playwright.config.ts:32 — test retry |
Product & Engineering Maturity
adequate107 direct dependencies in a single manifest
adequatego.mod declares 107 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.
go.mod — 107 declared |
package.json — 74 declared |
web_src/fomantic/package.json — 1 declared |
6 files still carry code deprecated more than two years ago
adequate6 files were marked deprecated over two years ago and still are, the oldest since Jan 2022. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
modules/structs/org_team.go — deprecated since Jan 2022 |
modules/structs/repo_branch.go — deprecated since Jan 2023 |
routers/api/packages/chef/chef.go — deprecated since Feb 2023 |
modules/structs/repo.go — deprecated since May 2023 |
routers/api/actions/artifact.pb.go — deprecated since Mar 2024 |
Releases are cut from another branch than the one surveyed
adequateThe newest release, v16.0.5, is not on the branch this survey read; the newest release on it is v0.9.99. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v16.0.5 |
Security & Reliability Posture
adequate1 Dockerfile runs the application as root
adequateNo 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.
Dockerfile — runs as root |
3 outbound calls can wait forever
adequate3 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.
modules/uri/uri.go:32 — outbound call without a timeout |
routers/web/auth/oauth.go:1290 — outbound call without a timeout |
services/migrations/dump.go:312 — outbound call without a timeout |
48 SQL statements built from strings
adequate48 places in product code build SQL by formatting or joining strings rather than passing parameters. 1 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.
models/user/redirect.go:109 — SQL built from a string |
models/db/convert.go:30 — SQL built from a string |
models/db/convert.go:40 — SQL built from a string |
22 locked dependencies have published vulnerabilities, 18 high or critical in what ships
adequate22 of 1,358 locked dependencies match 40 published advisories in OSV, 19 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.
web_src/fomantic/package-lock.json — brace-expansion 1.1.18: GHSA-6j4f-fj2g-mc7p (high), fixed in 1.1.19 |
web_src/fomantic/package-lock.json — brace-expansion 2.1.4: GHSA-6j4f-fj2g-mc7p (high), fixed in 2.1.5 |
package-lock.json — brace-expansion 5.0.9: GHSA-6j4f-fj2g-mc7p (high), fixed in 5.0.10 |
35 places insert HTML from a variable without sanitising it
adequate35 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.
web_src/js/components/ActionJobStep.vue:121 — HTML from a variable |
web_src/js/components/ContextPopup.vue:122 — HTML from a variable |
web_src/js/components/PullRequestMergeForm.vue:97 — HTML from a variable |
Relicensed: MIT → BSD-3-Clause (2014-03-25) → MIT (2014-11-06) → GPL-3.0 (2024-08-22)
adequateThe root licence changed 3 time(s). The latest terms restrict what users, hosts or a buyer may do in ways the earlier ones did not. Code taken under the old terms stays under them, so both matter in diligence.
Observability & Operations
strongNo error reporter is wired in
adequateNothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.
| no error reporter initialised |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on codeberg.org/forgejo/forgejo: 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.