{"record":{"id":"7b09312c9bd28114","repo":"oven-sh/bun","slug":"secret-not-found-name-hint-go-to-hint-and","errorCode":null,"errorMessage":"Secret not found: ${name} (hint: go to ${hint} and create a secret)","messagePattern":"Secret not found: (.+?) \\(hint: go to (.+?) and create a secret\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scripts/utils.mjs","lineNumber":84,"sourceCode":"    const command = [\"buildkite-agent\", \"secret\", \"get\", name];\n    if (options[\"redact\"] === false) {\n      command.push(\"--skip-redaction\");\n    }\n\n    const { error, stdout } = spawnSync(command);\n    const secret = stdout.trim();\n    if (error || !secret) {\n      const orgId = getEnv(\"BUILDKITE_ORGANIZATION_SLUG\", false);\n      const clusterId = getEnv(\"BUILDKITE_CLUSTER_ID\", false);\n\n      let hint;\n      if (orgId && clusterId) {\n        hint = `https://buildkite.com/organizations/${orgId}/clusters/${clusterId}/secrets`;\n      } else {\n        hint = \"https://buildkite.com/docs/pipelines/buildkite-secrets\";\n      }\n\n      throw new Error(`Secret not found: ${name} (hint: go to ${hint} and create a secret)`, { cause: error });\n    }\n\n    setEnv(name, secret);\n    return secret;\n  }\n\n  return getEnv(name, options[\"required\"]);\n}\n\n/**\n * @param  {...unknown} args\n */\nexport function debugLog(...args) {\n  if (isDebug) {\n    console.log(...args);\n  }\n}\n","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/scripts/utils.mjs#L66-L102","documentation":"Error \"Secret not found: ${name} (hint: go to ${hint} and create a secret)\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at scripts/utils.mjs:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}