Find secrets with regular expressions

Proprietary

A secret is a literal that matches any one of the provided patterns.

org.openrewrite.java.security.secrets.FindSecretsByPattern

Required

The type of secret that this recipe is looking for.

A regular expression to search for.

Optional

A regular expression to match a 'key' against. For example, a key

mod run . --recipe=org.openrewrite.java.security.secrets.FindSecretsByPattern \ -P secretName='AWS Access Key' \ -P valuePattern='[a-zA-Z0-9+\/=]{88}'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.