Find GitHub PAT literals (ghp_…)

Proprietary

GitHub personal access tokens begin with ghp_ and are full-scope unless the PAT is fine-grained. A literal ghp_… in source must be revoked at github.com/settings/tokens immediately.

org.openrewrite.kotlin.security.FindGitHubPatLiteral$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindGitHubPatLiteral$KtRecipe'

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