Class: Dependabot::GithubActions::FileParser

Inherits:
FileParsers::Base
  • Object
show all
Extended by:
T::Set
Defined in:
lib/dependabot/github_actions/file_parser.rb

Constant Summary collapse

GITHUB_REPO_REFERENCE =
%r{
  ^(?<owner>[\w.-]+)/
  (?<repo>[\w.-]+)
  (?<path>/[^\@]+)?
  @(?<ref>.+)
}x

Instance Method Summary collapse

Instance Method Details

#parseObject



31
32
33
34
35
36
37
38
39
# File 'lib/dependabot/github_actions/file_parser.rb', line 31

def parse
  dependency_set = DependencySet.new

  workflow_files.each do |file|
    dependency_set += workfile_file_dependencies(file)
  end

  dependency_set.dependencies
end