dependabot-core 0.89.3 → 0.89.4
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: 768e02710b4c03fa4ef77c6180fa330b87a41eb099fd2868db578977d996d83e
|
4
|
+
data.tar.gz: 7fca6335004ac0f914175ee8c7cb28358431ecd28f4550f1962073c7758bdc1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68e3d993733e94c661acaf94dcf674d560fa47c52d4c7c2f90818470f3343189406cca0e3741ef31d44cefdf4b323ede42d5a569a0904413a94e9c768c029ad8
|
7
|
+
data.tar.gz: 6d1bdb4a95f8dbf243005329d104d4e971fbdaaf9903b49b2f940ffc3a1006fb88ea3f185946cdecf55610da41099746cdb5b96c21b1824bc2c4b28ed3669d5c
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,7 @@ module Dependabot
|
|
8
8
|
class Bitbucket
|
9
9
|
class NotFound < StandardError; end
|
10
10
|
class Unauthorized < StandardError; end
|
11
|
+
class Forbidden < StandardError; end
|
11
12
|
|
12
13
|
#######################
|
13
14
|
# Constructor methods #
|
@@ -82,10 +83,11 @@ module Dependabot
|
|
82
83
|
user: credentials&.fetch("username"),
|
83
84
|
password: credentials&.fetch("password"),
|
84
85
|
idempotent: true,
|
85
|
-
**SharedHelpers.excon_defaults
|
86
|
+
**Dependabot::SharedHelpers.excon_defaults
|
86
87
|
)
|
87
|
-
raise NotFound if response.status == 404
|
88
88
|
raise Unauthorized if response.status == 401
|
89
|
+
raise Forbidden if response.status == 403
|
90
|
+
raise NotFound if response.status == 404
|
89
91
|
|
90
92
|
response
|
91
93
|
end
|
@@ -119,7 +119,8 @@ module Dependabot
|
|
119
119
|
end
|
120
120
|
rescue Octokit::NotFound, Gitlab::Error::NotFound,
|
121
121
|
Dependabot::Clients::Bitbucket::NotFound,
|
122
|
-
Dependabot::Clients::Bitbucket::Unauthorized
|
122
|
+
Dependabot::Clients::Bitbucket::Unauthorized,
|
123
|
+
Dependabot::Clients::Bitbucket::Forbidden
|
123
124
|
[]
|
124
125
|
end
|
125
126
|
|
@@ -180,7 +181,8 @@ module Dependabot
|
|
180
181
|
}
|
181
182
|
end
|
182
183
|
rescue Dependabot::Clients::Bitbucket::NotFound,
|
183
|
-
Dependabot::Clients::Bitbucket::Unauthorized
|
184
|
+
Dependabot::Clients::Bitbucket::Unauthorized,
|
185
|
+
Dependabot::Clients::Bitbucket::Forbidden
|
184
186
|
[]
|
185
187
|
end
|
186
188
|
|
data/lib/dependabot/version.rb
CHANGED