Skip to content

Commit

Permalink
Opt-in for MFA requirement explicitly
Browse files Browse the repository at this point in the history
As a pupular gem, `regexp_parser` implicitly requires that all
privileged operations by any of the owners require OTP.

However, by explicitly setting `rubygems_mfa_required` metadata, the
gem will show "NEW VERSIONS REQUIRE MFA" and
"VERSION PUBLISHED WITH MFA" in the sidebar at
https://github.com/ammar/regexp_parser

Ref:
- https://blog.rubygems.org/2022/08/15/requiring-mfa-on-popular-gems.html
- https://guides.rubygems.org/mfa-requirement-opt-in/
  • Loading branch information
tagliala committed May 13, 2024
1 parent 9883215 commit 50f6259
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions regexp_parser.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Gem::Specification.new do |spec|
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['wiki_uri'] = "#{spec.homepage}/wiki"

spec.metadata['rubygems_mfa_required'] = 'true'

spec.authors = ['Ammar Ali', 'Janosch Müller']
spec.email = ['[email protected]', '[email protected]']

Expand Down

0 comments on commit 50f6259

Please sign in to comment.