You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Renovate依赖Bot无法找到GitHub私有仓库问题求助

CLI配置Renovate Bot时遇到“Repository is not found”错误

我正尝试通过CLI配置Renovate Bot,在部署到Docker容器前调试配置文件。已在GitHub创建包含简单Hello World项目的私有测试仓库,仓库内有几个过时依赖,但运行npx renovate时提示“Repository is not found”错误。以下是详细配置及调试日志:

配置文件

config.js

const dotenv = require('dotenv').config()

module.exports = {
  token: process.env.GITHUB_ACCESS_TOKEN,
  hostRules: [{'domainName': 'github.com', 'token': process.env.GITHUB_ACCESS_TOKEN}],
  endpoint: 'https://api.github.com',
  gitAuthor: 'jacob-jameson <jameson.signup@gmail.com>',
  platform: 'github',
  autodiscover: 'false',
  repositories: ['jacob-jameson/Renovate_SelfHosted']
};

package.json

{
  "name": "renovate_selfhosted",
  "version": "1.0.0",
  "description": "Simple Node.js project to test self-hosted Renovate dependency bot",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Jacob Jameson",
  "license": "ISC",
  "dependencies": {
    "dotenv": "^16.0.0",
    "express": "^4.0.0",
    "renovate": "^34.154.6"
  }
}

调试日志

DEBUG: Using RE2 as regex engine
DEBUG: Parsing configs
DEBUG: Checking for config file in C:\Dev\Renovate_SelfHosted/config.js
 WARN: Config needs migrating
       "originalConfig": {
         "token": "***********",
         "hostRules": [{"domainName": "github.com", "token": "***********"}],
         "endpoint": "https://api.github.com",
         "gitAuthor": "Jacob Jameson <jameson.signup@gmail.com>",
         "platform": "github",
         "autodiscover": "false",
         "repositories": ["jacob-jameson/Renovate_SelfHosted"]
       },
       "migratedConfig": {
         "token": "***********",
         "hostRules": [{"matchHost": "github.com", "token": "***********"}],
         "endpoint": "https://api.github.com",
         "gitAuthor": "Jacob Jameson <jameson.signup@gmail.com>",
         "platform": "github",
         "autodiscover": false,
         "repositories": ["jacob-jameson/Renovate_SelfHosted"]
       }
DEBUG: File config
       "config": {
         "token": "***********",
         "hostRules": [{"matchHost": "github.com", "token": "***********"}],
         "endpoint": "https://api.github.com",
         "gitAuthor": "Jacob Jameson <jameson.signup@gmail.com>",
         "platform": "github",
         "autodiscover": false,
         "repositories": ["jacob-jameson/Renovate_SelfHosted"]
       }
DEBUG: CLI config
       "config": {}
DEBUG: Env config
       "config": {"hostRules": []}
DEBUG: Combined config
       "config": {
         "token": "***********",
         "hostRules": [{"matchHost": "github.com", "token": "***********"}],
         "endpoint": "https://api.github.com",
         "gitAuthor": "Jacob Jameson <jameson.signup@gmail.com>",
         "platform": "github",
         "autodiscover": false,
         "repositories": ["jacob-jameson/Renovate_SelfHosted"]
       }
DEBUG: Adding trailing slash to endpoint
DEBUG: Found valid git version: 2.37.1
DEBUG: Platform config
       "platformConfig": {
         "hostType": "github",
         "endpoint": "https://api.github.com/",
         "isGHApp": false,
         "isGhe": false,
         "userDetails": {"username": "jacob-jameson", "name": null}
       },
       "renovateUsername": "jacob-jameson"
DEBUG: Using configured gitAuthor (Jacob Jameson <jameson.signup@gmail.com>)
DEBUG: Adding token authentication for api.github.com to hostRules
DEBUG: Using baseDir: C:/Users/JACOBJ~1/AppData/Local/Temp/renovate
DEBUG: Using cacheDir: C:/Users/JACOBJ~1/AppData/Local/Temp/renovate/cache
DEBUG: Using containerbaseDir: C:/Users/JACOBJ~1/AppData/Local/Temp/renovate/cache/containerbase
DEBUG: Initializing Renovate internal cache into C:/Users/JACOBJ~1/AppData/Local/Temp/renovate/cache/renovate/renovate-cache-v1
DEBUG: Commits limit = null
DEBUG: Setting global hostRules
DEBUG: Adding token authentication for github.com to hostRules
DEBUG: Adding token authentication for api.github.com to hostRules
DEBUG: validatePresets()
DEBUG: Reinitializing hostRules for repo
DEBUG: Clearing hostRules
DEBUG: Adding token authentication for github.com to hostRules
DEBUG: Adding token authentication for api.github.com to hostRules
 INFO: Repository started (repository=jacob-jameson/Renovate_SelfHosted)
       "renovateVersion": "34.154.6"
DEBUG: Using localDir: C:/Users/JACOBJ~1/AppData/Local/Temp/renovate/repos/github/jacob-jameson/Renovate_SelfHosted (repository=jacob-jameson/Renovate_SelfHosted)   
DEBUG: PackageFiles.clear() - Package files deleted (repository=jacob-jameson/Renovate_SelfHosted)
DEBUG: initRepo("jacob-jameson/Renovate_SelfHosted") (repository=jacob-jameson/Renovate_SelfHosted)
DEBUG: Caught initRepo error (repository=jacob-jameson/Renovate_SelfHosted)
       "err": {
         "message": "not-found",
         "stack": "Error: not-found\n    at Proxy.initRepo (C:\\Dev\\Renovate_SelfHosted\\node_modules\\renovate\\lib\\modules\\platform\\github\\index.ts:392:13)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at getPlatformConfig (C:\\Dev\\Renovate_SelfHosted\\node_modules\\renovate\\lib\\workers\\repository\\init\\apis.ts:52:26)\n    at initApis (C:\\Dev\\Renovate_SelfHosted\\node_modules\\renovate\\lib\\workers\\repository\\init\\apis.ts:64:12)\n    at initRepo (C:\\Dev\\Renovate_SelfHosted\\node_modules\\renovate\\lib\\workers\\repository\\init\\index.ts:37:12)\n    at Object.renovateRepository (C:\\Dev\\Renovate_SelfHosted\\node_modules\\renovate\\lib\\workers\\repository\\index.ts:49:14)\n    at attributes.repository (C:\\Dev\\Renovate_SelfHosted\\node_modules\\renovate\\lib\\workers\\global\\index.ts:181:11)\n    at start (C:\\Dev\\Renovate_SelfHosted\\node_modules\\renovate\\lib\\workers\\global\\index.ts:166:7)\n    at C:\\Dev\\Renovate_SelfHosted\\node_modules\\renovate\\lib\\renovate.ts:18:22"
       }
ERROR: Repository is not found (repository=jacob-jameson/Renovate_SelfHosted)
DEBUG: Repository result: not-found, status: disabled, enabled: false, onboarded: undefined (repository=jacob-jameson/Renovate_SelfHosted)
DEBUG: Repository timing splits (milliseconds) (repository=jacob-jameson/Renovate_SelfHosted)
       "splits": {},
       "total": 530
DEBUG: Package cache statistics (repository=jacob-jameson/Renovate_SelfHosted)
       "get": {"count": 0},
       "set": {"count": 0}
DEBUG: dns cache (repository=jacob-jameson/Renovate_SelfHosted)
       "hosts": []
 INFO: Repository finished (repository=jacob-jameson/Renovate_SelfHosted)
       "cloned": undefined,
       "durationMs": 530
DEBUG: Renovate exiting
 INFO: Renovate is exiting with a non-zero code due to the following logged errors
       "loggerErrors": [
         {
           "name": "renovate",
           "level": 50,
           "logContext": "zM13viiLgx6NWxBuYFC1r",
           "repository": "jacob-jameson/Renovate_SelfHosted",
           "msg": "Repository is not found"
         }
       ]

已尝试的解决操作

  • 删除并重建仓库
  • 修改autodiscover为true
  • 确保本地Git信息与GitHub一致
  • 生成新的访问令牌

以上操作均未解决问题,寻求协助。

内容的提问来源于stack exchange,提问作者Jacob Jameson

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.29 23:22:08