oven-sh/bun · error
Secret not found: ${name} (hint: go to ${hint} and create a
Error message
Secret not found: ${name} (hint: go to ${hint} and create a secret) What it means
Error "Secret not found: ${name} (hint: go to ${hint} and create a secret)" thrown in oven-sh/bun.
Source
Thrown at scripts/utils.mjs:84
const command = ["buildkite-agent", "secret", "get", name];
if (options["redact"] === false) {
command.push("--skip-redaction");
}
const { error, stdout } = spawnSync(command);
const secret = stdout.trim();
if (error || !secret) {
const orgId = getEnv("BUILDKITE_ORGANIZATION_SLUG", false);
const clusterId = getEnv("BUILDKITE_CLUSTER_ID", false);
let hint;
if (orgId && clusterId) {
hint = `https://buildkite.com/organizations/${orgId}/clusters/${clusterId}/secrets`;
} else {
hint = "https://buildkite.com/docs/pipelines/buildkite-secrets";
}
throw new Error(`Secret not found: ${name} (hint: go to ${hint} and create a secret)`, { cause: error });
}
setEnv(name, secret);
return secret;
}
return getEnv(name, options["required"]);
}
/**
* @param {...unknown} args
*/
export function debugLog(...args) {
if (isDebug) {
console.log(...args);
}
}
View on GitHub (pinned to 8c5296ac45)
When it happens
Trigger: Thrown at scripts/utils.mjs:84 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/7b09312c9bd28114.
Report an issue: GitHub.