Usage of hard-coded secret
- Rule ID: ruby_lang_hardcoded_secret
- Languages: ruby
- Source: hardcoded_secret.yml
Applications should store secret values securely and not as literal values in the source code.
✅ Retrieve secrets from a secure location at runtime
OWASP Top 10
To skip this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --skip-rule=ruby_lang_hardcoded_secret
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=ruby_lang_hardcoded_secret
Ready to take the next step? Learn more about Bearer Cloud.