Skip to content

sbx secret set <sandbox> github doesn't update env vars (sentinel values) for existing sandbox #25

Description

@busyerakli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions