mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
ci(duplicate-check): let Codex reach GitHub from its sandbox
Every gh search in the first real runs failed with "error connecting to api.github.com", so the verdict was always null. The legacy sandbox_permissions key no longer grants network in read-only mode; the workspace-write sandbox has a network_access switch that does. Pin the CLI to the version the prompt was proven on
This commit is contained in:
parent
59c24abcbe
commit
1f27c442b4
1 changed files with 4 additions and 3 deletions
7
.github/workflows/duplicate_issue_check.yml
vendored
7
.github/workflows/duplicate_issue_check.yml
vendored
|
|
@ -93,10 +93,11 @@ jobs:
|
|||
responses-api-endpoint: ${{ vars.LITELLM_API_BASE }}/v1/responses
|
||||
prompt-file: .github/prompts/duplicate-issue-check.md
|
||||
output-schema-file: .github/prompts/duplicate-issue-check.schema.json
|
||||
sandbox: read-only
|
||||
# read-only denies network, and the whole method is searching the tracker with gh
|
||||
codex-args: '["-c", "sandbox_permissions=[\"network-full-access\"]"]'
|
||||
sandbox: workspace-write
|
||||
# The whole method is searching the tracker with gh, and network is only switchable in workspace-write
|
||||
codex-args: '["-c", "sandbox_workspace_write.network_access=true"]'
|
||||
model: ${{ vars.DUPLICATE_CHECK_MODEL }}
|
||||
codex-version: "0.154.0"
|
||||
# Issue authors have no write access and the action refuses them by default; the
|
||||
# prompt is fixed, the sandbox read-only, and the only token is read-only on a public repo
|
||||
allow-users: "*"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue