Class: Dependabot::GithubActions::WorkflowFile::UsesCollector

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/github_actions/workflow_file/uses_collector.rb

Defined Under Namespace

Classes: ResolvedUse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ UsesCollector

Returns a new instance of UsesCollector.



18
19
20
# File 'lib/dependabot/github_actions/workflow_file/uses_collector.rb', line 18

def initialize(data)
  @data = data
end

Instance Method Details

#usesObject



23
24
25
26
27
28
# File 'lib/dependabot/github_actions/workflow_file/uses_collector.rb', line 23

def uses
  root, path = workflow_root
  return [] unless root && path

  collect_uses(root, path)
end