---
title: "Discussion on \"Running untrusted pull request code from agents and contributors\" | Hashnode"
description: "Discussion on \"Running untrusted pull request code from agents and contributors\". Originally published on sandscale.dev.\nA pull request is a request to run someone else's code on your machine. CI has always worked this way: check out the branch, install dependencies, run the tests."
url: "https://hashnode.com/posts/running-untrusted-pull-request-code-from-agents-and-contributors/6b0089797339bc73d40df4c1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Running untrusted pull request code from agents and contributors](https://sandscale.hashnode.dev/running-untrusted-pull-request-code-from-agents-and-contributors?utm_source=hashnode&utm_medium=feed)

Originally published on sandscale.dev. A pull request is a request to run someone else's code on your machine. CI has always worked this way: check out the branch, install dependencies, run the tests.

4d ago · 7 min read · sandscale.hashnode.dev  
Read the article

-   [#security](https://hashnode.com/tag/security)
-   [#devops](https://hashnode.com/tag/devops)
-   [#AI](https://hashnode.com/tag/AI)
-   [#testing](https://hashnode.com/tag/testing)

## Written by

[Sandscale](https://hashnode.com/@sandscale)

@sandscale

  
[View profile](https://hashnode.com/@sandscale)

## Responses 1

Markdown supported · ⌘↵ to post

[Mateo Ruiz](https://hashnode.com/@mateoruiz)

[4d ago](https://hashnode.com/posts/running-untrusted-pull-request-code-from-agents-and-contributors/6b0089797339bc73d40df4c1/comment/6b0131e0a4e592295c32693f)

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.
