Sandbox build & test runs
What sandbox runs do
On paid plans, for public repositories, GitAlert can do more than read the diff. It builds the project and runs its existing tests on the base commit and on the pull request's head commit, inside a throwaway sandbox, and reports whether the change broke something that worked before.
This turns "the tests pass" into evidence: GitAlert can see whether the tests passed before and still pass after the change, and flag a regression the diff introduced.
Sandbox runs do not cover every pull request. Private repositories are not sandboxed on any plan today, and on the free plan GitAlert never executes your code. Those pull requests are triaged by reading the diff only.
When a sandbox run happens
GitAlert runs a sandbox for a pull request only when all of these are true:
- The installation is on a paid plan.
- The repository is public.
- GitAlert can work out how to run the tests without any configuration from you. It does this for Node, Python, Go, Rust, Ruby and PHP projects: it installs the dependencies and runs the ecosystem's standard test command (such as
npm test,pytestorgo test ./...). A project with a Dockerfile is run only when a recent GitHub Actions run on the base branch passed with a test step, because GitAlert does not build Docker images.
There is no setting to turn sandbox runs on or off, and nothing to add to your repository: sandbox runs are operated by us. When a pull request doesn't meet these conditions, or the sandbox service isn't available, there is simply no sandbox run and the diff-based label stands. Sandbox runs are in beta and are not available on every plan yet; the pricing page lists them while they are offered.
How your code is protected
Sandbox runs happen in an isolated, single-use environment operated by our sandbox provider, and it is destroyed after every run. The isolation is deliberate:
- Default-deny networking. The sandbox can only reach your Git host and the public package registries it needs to install dependencies, nothing else.
- No secrets. GitAlert passes no credentials into the sandbox. It clones the public repository over HTTPS to run the build; it does not carry your CI secrets, environment variables or tokens.
- Separated from our systems. The sandbox has no access to GitAlert's own infrastructure or database.
- Ephemeral. The workspace is torn down as soon as the run finishes.
{primary} Because the sandbox has no secrets and no privileged network access, a malicious or buggy PR can't use a GitAlert run to exfiltrate data or reach anything sensitive.
What the sandbox reports
The sandbox result is folded into the same neutral check, under Sandbox run:
- whether the tests passed on the base commit and on the head commit,
- how the environment was found (with no configuration from you),
- how long the run took.
A build that fails, or a regression (tests that passed on the base and fail on the head), counts against the PR as a scored signal and can move the label down. Neither is a hard rule on its own, because a flaky test on the base commit should not freeze a PR.
If a sandbox run can't complete for any reason, GitAlert fails soft: the diff-based label stands, and the run never makes the label worse than the diff alone justified.