Skip to content

Validate gem name against protected typos when creating pending trusted publisher#6330

Open
Hemang360 wants to merge 3 commits intorubygems:masterfrom
Hemang360:gem-name-validation
Open

Validate gem name against protected typos when creating pending trusted publisher#6330
Hemang360 wants to merge 3 commits intorubygems:masterfrom
Hemang360:gem-name-validation

Conversation

@Hemang360
Copy link
Copy Markdown
Contributor

@Hemang360 Hemang360 commented Mar 17, 2026

Adds GemTypo validation to OIDC::PendingTrustedPublisher on create, so names too similar to existing protected gems (e.g. type_kit vs typekit) are rejected upfront instead of at gem push time.

Closes #6273

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.49%. Comparing base (58b23ae) to head (f8994e4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6330      +/-   ##
==========================================
- Coverage   97.08%   94.49%   -2.59%     
==========================================
  Files         489      489              
  Lines       10386    10451      +65     
==========================================
- Hits        10083     9876     -207     
- Misses        303      575     +272     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Gem name should be validated before creating a pending trusted publisher

2 participants