Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions policies/code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ network_policies:
protocol: rest
enforcement: enforce
access: read-only
allow_encoded_slash: true
Comment thread
ascerra marked this conversation as resolved.
Resolved
- host: "pypi.org"
port: 443
protocol: rest
Expand Down
19 changes: 15 additions & 4 deletions policies/fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ version: 1

# Sandbox policy for the fix agent.
#
# Identical to the code agent policy — the fix agent needs the same network
# access (Vertex AI, GitHub API for gh pr view/diff, package registries)
# because it runs tests and linters. The review body is pre-fetched by the
# workflow; the sandbox GH_TOKEN is read-only scoped.
# Shares much of the same network and sandbox needs as the code agent
Comment thread
ascerra marked this conversation as resolved.
Resolved
Comment thread
ascerra marked this conversation as resolved.
Resolved
Comment thread
ascerra marked this conversation as resolved.
Resolved
# (Vertex AI, GitHub API for gh pr view/diff, package registries) because
# it runs tests and linters. The two policies may diverge when fix-specific
Comment thread
ascerra marked this conversation as resolved.
Resolved
# access is required. The review body is pre-fetched by the workflow; the
# sandbox GH_TOKEN is read-only scoped.

filesystem_policy:
include_workdir: true
Expand Down Expand Up @@ -93,6 +94,12 @@ network_policies:
enforcement: enforce
access: read-only
allow_encoded_slash: true
- host: "registry.yarnpkg.com"
Comment thread
ascerra marked this conversation as resolved.
Resolved
port: 443
protocol: rest
enforcement: enforce
access: read-only
allow_encoded_slash: true
- host: "pypi.org"
port: 443
protocol: rest
Expand Down Expand Up @@ -120,6 +127,10 @@ network_policies:
access: read-only
binaries:
- path: "**/npm"
- path: "**/npx"
- path: "**/yarn"
- path: "**/yarnpkg"
- path: "**/pnpm"
- path: "**/node"
- path: "**/pip"
- path: "**/pip3"
Expand Down
Loading