dependabot-github_actions 0.180.0 → 0.180.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e49cb0f3d7fa2daf0b55e1a64c1cb119d20aaebe2d9868ab3b36e727171d804
4
- data.tar.gz: 267595f1d257dc894952e219c07fa36ea50eb2f3b5ba913874078d28d50cabb6
3
+ metadata.gz: c29940e1b24e537866e9c026b09b4c2f857f79069a54259a7f1b87cc96c7a494
4
+ data.tar.gz: 31833afe7e12ee8c003eee68ffe32d2d2ccf9a88ea63e755b4764d6f76ab9559
5
5
  SHA512:
6
- metadata.gz: 0425a8ea6f59cded20940ce8fbe0180da8b6cbe1a83bf945493037716ddf30ff8d34493dd320a2a04c3f660f2c37bbe8461d4e2b56506a42aadd6979e47c04e9
7
- data.tar.gz: 05f1f5ddc7ada8fabf165c7154e572cac07765b2d280f6dc2113fd201b0472522d2d796efa67a89ce09e280fdc173fef9be01be07841733f5cf64ead5b108192
6
+ metadata.gz: e0da1d3af4a44adf6b3bf352cd26707bba084f66b4f0504db0179a5adba97b1136e0817674a1b367ad8d6d3a493c6efe3663f80f5e2a199b08a48f6676e1c3ed
7
+ data.tar.gz: 2729a38e3fd5f041077d34ba058a4a662d14954f01fcd797d9ca5e76ebe8d0b6e53d12ec452deefd900bcb48260d6443bcb582a790ce49aeb4680fed3d4a0b8d
@@ -13,7 +13,7 @@ module Dependabot
13
13
  end
14
14
 
15
15
  def self.required_files_message
16
- "Repo must contain a .github/workflows directory with YAML files or an action.yml in the root"
16
+ "Repo must contain a .github/workflows directory with YAML files or an action.yml file"
17
17
  end
18
18
 
19
19
  private
@@ -28,7 +28,7 @@ module Dependabot
28
28
  if incorrectly_encoded_workflow_files.none?
29
29
  raise(
30
30
  Dependabot::DependencyFileNotFound,
31
- File.join(directory, ".github/workflows/<anything>.yml")
31
+ File.join(directory, "action.yml") + " or /.github/workflows/<anything>.yml"
32
32
  )
33
33
  else
34
34
  raise(
@@ -39,11 +39,18 @@ module Dependabot
39
39
  end
40
40
 
41
41
  def workflow_files
42
- @workflow_files ||=
42
+ return @workflow_files if defined? @workflow_files
43
+
44
+ @workflow_files = [fetch_file_if_present("action.yml"), fetch_file_if_present("action.yaml")].compact
45
+
46
+ # In the special case where the root directory is defined we also scan
47
+ # the .github/workflows/ folder.
48
+ return @workflow_files unless directory == "/"
49
+
50
+ @workflow_files +=
43
51
  repo_contents(dir: ".github/workflows", raise_errors: false).
44
52
  select { |f| f.type == "file" && f.name.match?(/\.ya?ml$/) }.
45
- map { |f| fetch_file_from_host(".github/workflows/#{f.name}") } \
46
- + [fetch_file_if_present("action.yml"), fetch_file_if_present("action.yaml")].compact
53
+ map { |f| fetch_file_from_host(".github/workflows/#{f.name}") }
47
54
  end
48
55
 
49
56
  def referenced_local_workflow_files
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-github_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.180.0
4
+ version: 0.180.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-18 00:00:00.000000000 Z
11
+ date: 2022-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.180.0
19
+ version: 0.180.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.180.0
26
+ version: 0.180.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.23.0
103
+ version: 1.26.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.23.0
110
+ version: 1.26.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement