File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ elsif !ENV["GITHUB_TOKEN"]
2828 raise "Missing GITHUB_TOKEN env, go to https://github.com/settings/tokens and create one with 'repo' access"
2929end
3030
31+ # workaround an openssl 3.6.0 issue
32+ # https://github.com/ruby/openssl/issues/949#issuecomment-3367944960
33+ s = OpenSSL ::X509 ::Store . new . tap ( &:set_default_paths )
34+ OpenSSL ::SSL ::SSLContext . send ( :remove_const , :DEFAULT_CERT_STORE ) rescue nil # rubocop:disable Style/RescueModifier
35+ OpenSSL ::SSL ::SSLContext . const_set ( :DEFAULT_CERT_STORE , s . freeze )
36+
3137class Options
3238 DEFAULTS = {
3339 compact : false ,
@@ -183,8 +189,8 @@ def get_http(path)
183189
184190 response = http . get ( url )
185191
186- say_verbose ( "HTTP Response #{ response . status } " )
187192 response . raise_for_status
193+ say_verbose ( "HTTP Response #{ response . status } " )
188194 response . to_s
189195rescue HTTPX ::HTTPError => e
190196 warn error_details ( e )
You can’t perform that action at this time.
0 commit comments