Skip to content

Commit

Permalink
Merge pull request #11394 from dependabot/dev/brettfo/report-auth-err…
Browse files Browse the repository at this point in the history
…or-during-fetch

report `private_source_authentication_failure` during fetch
  • Loading branch information
randhircs authored Jan 24, 2025
2 parents f3327e0 + 99c445d commit ff79c04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/lib/dependabot/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff79c04

Please sign in to comment.