Similar issue - #17
From docs it seems like doing sbx secret set <sandbox> github will set both GH_TOKEN, GITHUB_TOKEN in sandbox right away.
A sandbox-scoped secret takes effect immediately, even if the sandbox is running.
but even after sandbox restart it isn't changed
gh pr list
⎿ To get started with GitHub CLI, please run: gh auth login
Alternatively, populate the GH_TOKEN environment variable with a GitHub API authentication token.
workaround is to set both envs through /etc/sandbox-persistent.sh to
export GH_TOKEN=proxy-managed
export GITHUB_TOKEN=proxy-managed
sbx version:
Client Version: v0.24.1 a67ca22761740c5c3450227ae723f069e92c9257
Server Version: v0.24.1 a67ca22761740c5c3450227ae723f069e92c9257
Similar issue - #17
From docs it seems like doing
sbx secret set <sandbox> githubwill set bothGH_TOKEN,GITHUB_TOKENin sandbox right away.but even after sandbox restart it isn't changed
workaround is to set both envs through
/etc/sandbox-persistent.shtosbx version: