pub struct SandboxConfigAuth {
pub gh: Option<bool>,
pub git: Option<bool>,
}Expand description
Credential-injection capability flags applied while the sandbox is enabled.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§gh: Option<bool>Whether to export GH_TOKEN so the gh CLI authenticates inside the sandbox without the OS keyring the sandbox blocks. Default: false (opt-in).
git: Option<bool>Whether to inject git credentials as an http.<url>.extraheader so authenticated HTTPS git works inside the sandbox without the shell-based credential helper the sandbox blocks. github.com is served by the Copilot token; every other forge (Azure DevOps, GitHub Enterprise Server, GitLab, …) by a credential the host resolves from the user’s own helper before the sandbox is applied. Default: false (opt-in).
Trait Implementations§
Source§impl Clone for SandboxConfigAuth
impl Clone for SandboxConfigAuth
Source§fn clone(&self) -> SandboxConfigAuth
fn clone(&self) -> SandboxConfigAuth
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more