GitHubSecurityLab / actions-permissions

GitHub token permissions Monitor and Advisor actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ruby/setup-ruby fails on macos

andreiz opened this issue · comments

This is right after using actions-permissions:

Run ruby/setup-ruby@v1
  with:
    ruby-version: 3.0
    bundler-cache: true
  env:
    NODE_EXTRA_CA_CERTS: /Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem
    REQUESTS_CA_BUNDLE: /Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem
    HEX_CACERTS_PATH: /Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem
Modifying PATH
Print Ruby version
  /Users/runner/hostedtoolcache/Ruby/3.0.6/x64/bin/ruby --version
  ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-darwin20]
  Took   0.11 seconds
Installing Bundler
  Using Bundler 2.4.17 from Gemfile.lock BUNDLED WITH 2.4.17
  /Users/runner/hostedtoolcache/Ruby/3.0.6/x64/bin/gem install bundler -v 2.4.17
  ERROR:  SSL verification error at depth 0: unable to get local issuer certificate (20)
  ERROR:  You must add /CN=mitmproxy/O=mitmproxy to your local trusted store
  ERROR:  SSL verification error at depth 0: unable to get local issuer certificate (20)
  ERROR:  You must add /CN=mitmproxy/O=mitmproxy to your local trusted store
  ERROR:  SSL verification error at depth 0: unable to get local issuer certificate (20)
  ERROR:  You must add /CN=mitmproxy/O=mitmproxy to your local trusted store
  ERROR:  Could not find a valid gem 'bundler' (= 2.4.17), here is why:
            Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (https://rubygems.org/specs.4.8.gz)
  ERROR:  SSL verification error at depth 0: unable to get local issuer certificate (20)
  ERROR:  You must add /CN=mitmproxy/O=mitmproxy to your local trusted store
  ERROR:  SSL verification error at depth 0: unable to get local issuer certificate (20)
  ERROR:  You must add /CN=mitmproxy/O=mitmproxy to your local trusted store
  Took   0.77 seconds