Skip to content

Commit f803782

Browse files
authored
Improve env vars for marvin (#1972)
1 parent 35a8c32 commit f803782

File tree

3 files changed

+16
-30
lines changed

3 files changed

+16
-30
lines changed

.github/workflows/marvin-dedupe-issues.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,12 @@ jobs:
8181
prompt: ${{ steps.dedupe-prompt.outputs.PROMPT }}
8282
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }}
8383
claude_args: |
84-
--model claude-sonnet-4-5-20250929
8584
--allowedTools Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh api:*),Bash(gh issue comment:*),Task
85+
--mcp-config /tmp/mcp-config/mcp-servers.json
8686
settings: |
8787
{
88-
"GH_TOKEN": "${{ steps.marvin-token.outputs.token }}"
88+
"model": "claude-sonnet-4-5-20250929",
89+
"env": {
90+
"GH_TOKEN": "${{ steps.marvin-token.outputs.token }}"
91+
}
8992
}

.github/workflows/marvin-label-triage.yml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
contents: read
2525
issues: write
2626
pull-requests: write
27-
id-token: write
2827

2928
steps:
3029
- name: Checkout base repository
@@ -124,30 +123,6 @@ jobs:
124123
PROMPT_END
125124
EOF
126125
127-
- name: Setup GitHub MCP Server
128-
run: |
129-
mkdir -p /tmp/mcp-config
130-
cat > /tmp/mcp-config/mcp-servers.json << 'EOF'
131-
{
132-
"mcpServers": {
133-
"github": {
134-
"command": "docker",
135-
"args": [
136-
"run",
137-
"-i",
138-
"--rm",
139-
"-e",
140-
"GITHUB_PERSONAL_ACCESS_TOKEN",
141-
"ghcr.io/github/github-mcp-server:sha-7aced2b"
142-
],
143-
"env": {
144-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${{ steps.marvin-token.outputs.token }}"
145-
}
146-
}
147-
}
148-
}
149-
EOF
150-
151126
- name: Run Marvin for Issue Triage
152127
uses: anthropics/claude-code-action@v1
153128
with:
@@ -156,10 +131,12 @@ jobs:
156131
prompt: ${{ steps.triage-prompt.outputs.PROMPT }}
157132
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_FOR_CI }}
158133
claude_args: |
159-
--model claude-sonnet-4-5-20250929
160134
--allowedTools Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__get_pull_request_files
161135
--mcp-config /tmp/mcp-config/mcp-servers.json
162136
settings: |
163137
{
164-
"GH_TOKEN": "${{ steps.marvin-token.outputs.token }}"
138+
"model": "claude-sonnet-4-5-20250929",
139+
"env": {
140+
"GH_TOKEN": "${{ steps.marvin-token.outputs.token }}"
141+
}
165142
}

.github/workflows/marvin.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ jobs:
6666
trigger_phrase: "/marvin"
6767
allowed_bots: "*"
6868
claude_args: |
69-
--model claude-sonnet-4-5-20250929
7069
--allowedTools WebSearch,WebFetch,Bash(uv:*),Bash(pre-commit:*),Bash(pytest:*),Bash(ruff:*),Bash(ty:*),Bash(git:*),Bash(gh:*),mcp__github__add_issue_comment,mcp__github__create_issue,mcp__github__get_issue,mcp__github__list_issues,mcp__github__search_issues,mcp__github__update_issue,mcp__github__update_issue_comment,mcp__github__create_pull_request,mcp__github__get_pull_request,mcp__github__get_pull_request_comments,mcp__github__get_pull_request_files,mcp__github__get_pull_request_reviews,mcp__github__get_pull_request_status,mcp__github__list_pull_requests,mcp__github__update_pull_request,mcp__github__update_pull_request_branch,mcp__github__update_pull_request_comment,mcp__github__merge_pull_request
7170
additional_permissions: |
7271
actions: read
72+
settings: |
73+
{
74+
"model": "claude-sonnet-4-5-20250929",
75+
"env": {
76+
"GH_TOKEN": "${{ steps.marvin-token.outputs.token }}"
77+
}
78+
}

0 commit comments

Comments
 (0)