Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat: make sensitive_env optional in the configuration file
Lars Wirzenius committed 1 year ago
commit 1e1587e820e2f7f15836f2420e331d8c2c9e8f5c
parent f3b83c30d88b69ba8a74b3e19b487383a11d3a39
1 file changed +2 -0
modified src/config.rs
@@ -80,6 +80,7 @@ impl fmt::Debug for Adapter {
pub struct Adapter {
    pub command: PathBuf,
    pub env: HashMap<String, String>,
+
    #[serde(default)]
    pub sensitive_env: HashMap<String, Sensitive>,
}

@@ -87,6 +88,7 @@ impl Adapter {
    pub fn envs(&self) -> &HashMap<String, String> {
        &self.env
    }
+

    pub fn sensitive_envs(&self) -> &HashMap<String, Sensitive> {
        &self.sensitive_env
    }