notifications: add http config
All checks were successful
ci/woodpecker/push/go-lint Pipeline was successful

This commit is contained in:
2025-03-12 10:10:45 -05:00
parent 4d705d78fb
commit 6bef0c3e5b
7 changed files with 69 additions and 11 deletions

View File

@@ -110,7 +110,11 @@ func injectEnvIntoSSH(envVarsToInject environmentVars, process *ssh.Session, opt
goto errEnvFile
}
for key, val := range envMap {
process.Setenv(key, GetVaultKey(val, opts, log))
err = process.Setenv(key, GetVaultKey(val, opts, log))
if err != nil {
log.Error().Err(err).Send()
}
}
}
@@ -121,7 +125,11 @@ errEnvFile:
if strings.Contains(envVal, "=") {
envVarArr := strings.Split(envVal, "=")
process.Setenv(envVarArr[0], getExternalConfigDirectiveValue(envVarArr[1], opts))
err := process.Setenv(envVarArr[0], getExternalConfigDirectiveValue(envVarArr[1], opts))
if err != nil {
log.Error().Err(err).Send()
}
}
}
}