Read current strategies in switch console#15
Conversation
e254786 to
c00c64f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e2547869cc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const token = env.RUNTIME_SETTINGS_DISPATCH_TOKEN; | ||
| if (!token || !accountOptions) return {}; |
There was a problem hiding this comment.
Require token access for target variables
When the Worker is configured as documented with RUNTIME_SETTINGS_DISPATCH_TOKEN only able to dispatch workflows in QuantRuntimeSettings, this new read path silently gets 403s for the platform repositories and /api/config never shows the current strategies. The feature now depends on the server token also having Actions-variable read access to each target repo/environment, so either the required scope/secret needs to change or a separate read-capable token should be used here.
Useful? React with 👍 / 👎.
Summary
Tests