dependabot-common 0.164.1 → 0.167.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84544008a2a1d9bf20219eadc873bf5afe920f59c70dce70433238580a935194
|
4
|
+
data.tar.gz: b11c970d8fb84093186d5a71183ad16fce888c45bf7bdb1cd611b7ab941ca98e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1980802cc40d2812329f6367b83cb82e7f7721aa2a849ba4a2e31b0774494e62439652f62c619ff3d04b1b828984a48e19fca7f04f887f0e7d9576ddc41e8ebe
|
7
|
+
data.tar.gz: 8db3ec73e21238eee90054598ffe143235fd37c3185349491e59f556e50dca47e743ec7d4dda43edd965dcc4b0b90632fac4b37d9d3640d38e48cd617879f69c
|
data/lib/dependabot/source.rb
CHANGED
@@ -45,6 +45,8 @@ module Dependabot
|
|
45
45
|
(?:#{AZURE_SOURCE})
|
46
46
|
/x.freeze
|
47
47
|
|
48
|
+
IGNORED_PROVIDER_HOSTS = %w(gitbox.apache.org svn.apache.org fuchsia.googlesource.com).freeze
|
49
|
+
|
48
50
|
attr_accessor :provider, :repo, :directory, :branch, :commit,
|
49
51
|
:hostname, :api_endpoint
|
50
52
|
|
@@ -64,6 +66,7 @@ module Dependabot
|
|
64
66
|
def self.github_enterprise_from_url(url_string)
|
65
67
|
captures = url_string&.match(GITHUB_ENTERPRISE_SOURCE)&.named_captures
|
66
68
|
return unless captures
|
69
|
+
return if IGNORED_PROVIDER_HOSTS.include?(captures.fetch("host"))
|
67
70
|
|
68
71
|
base_url = "https://#{captures.fetch('host')}"
|
69
72
|
|
@@ -86,6 +89,8 @@ module Dependabot
|
|
86
89
|
# currently doesn't work with development environments
|
87
90
|
resp.headers["X-GitHub-Request-Id"] &&
|
88
91
|
!resp.headers["X-GitHub-Request-Id"].empty?
|
92
|
+
rescue Excon::Error
|
93
|
+
false
|
89
94
|
end
|
90
95
|
|
91
96
|
def initialize(provider:, repo:, directory: nil, branch: nil, commit: nil,
|
data/lib/dependabot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.167.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|