Skip to content

Sync ANTHROPIC_API_KEY to Modal environments#121

Merged
anth-volk merged 1 commit intomainfrom
fix/fix-deploy-errors
Mar 11, 2026
Merged

Sync ANTHROPIC_API_KEY to Modal environments#121
anth-volk merged 1 commit intomainfrom
fix/fix-deploy-errors

Conversation

@anth-volk
Copy link
Contributor

Fixes #120

Summary

  • Add anthropic-api-key Modal secret creation to modal-sync-secrets.sh
  • Pass ANTHROPIC_API_KEY from GitHub secrets in both staging and production sync steps in deploy.yml

Test plan

  • modal deploy --env=staging src/policyengine_api/agent_sandbox.py succeeds
  • modal secret list --env=staging includes anthropic-api-key

🤖 Generated with Claude Code

The agent_sandbox.py references Modal secret 'anthropic-api-key'
but it was never created by the deploy pipeline. Add it to
modal-sync-secrets.sh and pass the key from GitHub secrets.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@anth-volk anth-volk marked this pull request as ready for review March 11, 2026 00:06
@anth-volk anth-volk merged commit dc5c8f2 into main Mar 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent sandbox deploy fails: anthropic-api-key Modal secret not synced

1 participant