class Dependabot::GithubActions::MetadataFinder
Private Instance Methods
look_up_source()
click to toggle source
# File lib/dependabot/github_actions/metadata_finder.rb, line 11 def look_up_source info = dependency.requirements.map { |r| r[:source] }.compact.first url = if info.nil? "https://github.com/#{dependency.name}" else info[:url] || info.fetch("url") end Source.from_url(url) end