One boundary worth emphasizing is what happens after the sandbox finishes. Even if the PR code cannot escape the microVM, its output is still attacker-controlled. Test reports, coverage files, generated artifacts, and even log output can contain content that becomes dangerous when a privileged CI job parses, publishes, or processes it.
I’d keep the post-sandbox stage isolated too: validate artifact types and paths, avoid executing anything retrieved from the sandbox, and make sure publishing jobs don't inherit its environment or credentials. A disposable execution environment is a strong first layer, but the trust boundary shouldn't disappear just because the test process exited successfully.
Mateo Ruiz
One boundary worth emphasizing is what happens after the sandbox finishes. Even if the PR code cannot escape the microVM, its output is still attacker-controlled. Test reports, coverage files, generated artifacts, and even log output can contain content that becomes dangerous when a privileged CI job parses, publishes, or processes it.
I’d keep the post-sandbox stage isolated too: validate artifact types and paths, avoid executing anything retrieved from the sandbox, and make sure publishing jobs don't inherit its environment or credentials. A disposable execution environment is a strong first layer, but the trust boundary shouldn't disappear just because the test process exited successfully.