Repository passport
tests/fixtures/working
- Installation
- PASSED
- Build
- PASSED
- Tests
- PASSED
Clone it, install it, build it and run its tests in a clean container. Keep the evidence in a passport anyone can read offline.
npx forkability-passport scan .tests/fixtures/working
The question is simple: if someone clones this repository today, can they get it running? A scan only reads files until you choose how its commands may run.
| Mode | What runs | Where |
|---|---|---|
scan . | Nothing. Manifests, lockfiles, scripts, runtimes, README commands and environment names are read. | Read-only inspection |
scan . --docker | Install, build and test commands found in the project itself, never commands copied from the README. | Disposable container, network off |
scan . --docker --network | The same, with network allowed for the install step only. The container is disconnected before build and tests. | Disposable container |
scan . --unsafe-local | The same commands, for code you already trust. | Your machine, your permissions |
Install, build and tests all ran and passed.
Some stages passed, the rest could not be checked.
A command ran and exited with an error.
Something outside the repo stopped it, such as no network for dependencies.
No supported command could run. A skipped test never counts as passed.
Each row earns its full weight or nothing. Untested stages earn zero, and a static-only scan is labelled as such and cannot pass 35.
| Category | Points | Earned when |
|---|---|---|
| Repository setup | 15 | Every project has a recognized manifest and a README. |
| Installation | 20 | The install command exits successfully. |
| Build | 25 | The declared build command succeeds. |
| Tests | 20 | The test command succeeds without a skipped or empty test summary. |
| Documentation | 10 | The README names commands that match the project, with no mismatch. |
| Environment | 10 | A runtime is declared and every environment name the code reads is in .env.example. |
--network, and never after install.--config is read.Docker shares the host kernel, so it is not an absolute boundary. For code you do not trust, run scans on a disposable VM or CI runner.
# .github/workflows/forkability.yml (steps) - uses: actions/checkout@v7 with: persist-credentials: false - uses: halilberkayy/forkability@v1 with: repository: . static-only: 'true' fail-below: '0'
No. The default scan only reads files. Commands run only with --docker or --unsafe-local, and even then only install, build and test commands declared by the project, never commands copied from its README.
The container starts without network and with an empty package cache. A project with dependencies cannot install offline, which says nothing about the project, so the stage is BLOCKED instead of FAILED. Rerun with --network to let the install step download packages.
Version 0.1 runs one npm project with a lockfile, or one Python project with requirements.txt. Rust, Go, Java, Flutter, PHP and Ruby projects get static inspection and are labelled that way, never scored as if they ran.
Your CI runs on a machine its maintainers configured. Forkability starts from a clean clone the way a new contributor would, and checks that the README matches what the project really does. It does not grade code style or scan for vulnerabilities.
Every scan writes forkability-badge.svg next to the HTML and JSON reports. forkability badge prints a Markdown snippet. The badge is generated locally and links to a report you host yourself.
npx forkability-passport scan https://github.com/owner/repo