Skip to content

Commit

Permalink
RUBYGEMS_FORCE_DISABLE_GEM_SIGNING=true disable key signing for rb-sy…
Browse files Browse the repository at this point in the history
…s gem build. (#379)

* RUBYGEMS_FORCE_DISABLE_GEM_SIGNING=true disable key signing for rb-sys gem build.

* Fix rubocops

---------

Co-authored-by: Ian Ker-Seymer <i.kerseymer@gmail.com>
  • Loading branch information
gl-yziquel and ianks authored May 30, 2024
1 parent af418cf commit 50f1697
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gem/rb_sys.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ Gem::Specification.new do |spec|

# Security
spec.cert_chain = ["certs/ianks.pem"]
spec.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0.end_with?("gem")
unless ENV["RUBYGEMS_FORCE_DISABLE_GEM_SIGNING"] == "true"
spec.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0.end_with?("gem")
end

spec.metadata["rubygems_mfa_required"] = "true"
end

0 comments on commit 50f1697

Please sign in to comment.