{"record":{"id":"0c2fe0eebe89e699","repo":"dbt-labs/dbt-core","slug":"missing-required-environment-variable","errorCode":null,"errorMessage":"missing required environment variable{}:\n  {}","messagePattern":"missing required environment variable(.+?):\n  (.+?)","errorType":"validation","errorClass":"anyhow","httpStatus":null,"severity":"error","filePath":"crates/dbt-ci/src/publish.rs","lineNumber":86,"sourceCode":"    fn resolve(prefix: &str, get: EnvGet<'_>) -> Result<Self> {\n        let mut missing = Vec::new();\n        let mut req = |suffix: &str| -> String {\n            let name = format!(\"{prefix}{suffix}\");\n            match get(&name) {\n                Some(v) => v,\n                None => {\n                    missing.push(name);\n                    String::new()\n                }\n            }\n        };\n        let domain = req(\"_DOMAIN\");\n        let domain_owner = req(\"_DOMAIN_OWNER\");\n        let region = req(\"_REGION\");\n        let repository = req(\"_REPOSITORY\");\n        let profile = req(\"_PROFILE\");\n        if !missing.is_empty() {\n            bail!(format_missing(&missing));\n        }\n        Ok(CodeArtifactTarget {\n            domain,\n            domain_owner,\n            region,\n            repository,\n            profile,\n        })\n    }\n\n    fn upload_url(&self) -> String {\n        format!(\n            \"https://{}-{}.d.codeartifact.{}.amazonaws.com/pypi/{}/\",\n            self.domain, self.domain_owner, self.region, self.repository,\n        )\n    }\n}\n","sourceCodeStart":68,"sourceCodeEnd":104,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-ci/src/publish.rs#L68-L104","documentation":"Publish-config resolution collected all required prefixed environment variables (e.g. *_DOMAIN, *_DOMAIN_OWNER, *_REGION, *_REPOSITORY) and one or more are unset; the message aggregates every missing name (with a pluralized suffix) after checking them all, before any network operation starts.","triggerScenarios":"Thrown at crates/dbt-ci/src/publish.rs:86 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Export the listed variables in the publishing environment","Wire them from CI secrets instead of relying on the local shell","Re-run after fixing; resolution fails fast before any upload is attempted"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0267ce9170576975b76b64ce856b2e5848e96617","analyzedAt":"2026-09-07T21:53:39.732Z","contentChangedAt":"2026-09-07T21:53:39.732Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}