From 99c445d9c0676aceb7efc43ac4eb01570f136488 Mon Sep 17 00:00:00 2001 From: "Brett V. Forsgren" Date: Thu, 23 Jan 2025 13:40:12 -0700 Subject: [PATCH] report `private_source_authentication_failure` during fetch --- common/lib/dependabot/errors.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/lib/dependabot/errors.rb b/common/lib/dependabot/errors.rb index bd2664fa1a..8597d4fe8c 100644 --- a/common/lib/dependabot/errors.rb +++ b/common/lib/dependabot/errors.rb @@ -85,6 +85,11 @@ def self.fetcher_error_details(error) "error-type": "path_dependencies_not_reachable", "error-detail": { dependencies: error.dependencies } } + when Dependabot::PrivateSourceAuthenticationFailure + { + "error-type": "private_source_authentication_failure", + "error-detail": { source: error.source } + } when Octokit::Unauthorized { "error-type": "octokit_unauthorized" } when Octokit::ServerError