LS-RUBYGEMS-001: RubyGems API Key¶
| Severity | HIGH |
| Blast radius | Package registry supply-chain compromise |
| Rotate at | https://rubygems.org/profile/api_keys |
If this leaks¶
Allows publishing new versions of gems the account owns.
What to do¶
- Rotate or revoke the credential at https://rubygems.org/profile/api_keys.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
\brubygems_[a-f0-9]{48}\b
Suppress¶
On one line: # leakscan:ignore LS-RUBYGEMS-001. For the whole project:
disable_rules: [LS-RUBYGEMS-001]