LOW AI PREVALENCE: HIGH auth.oauth.broad-scope
OAuth scope request includes an over-broad scope such as admin, full_access, *, or repo (entire GitHub access).
Why AI tools produce this: AI coding tools generate this anti-pattern by default, it appears in a large share of AI-written auth code.
Why this matters
LLMs default to the widest scope that "works", but every extra scope expands the blast radius if the access token is leaked or replayed.
Request the narrowest scope that satisfies your feature. Examples: use repo:status instead of repo, gmail.send instead of https://mail.google.com/, and scope down to read:user when you only need a profile.
VULNERABLE
SAFE
Suppressing this rule
If a finding is a genuine false positive, scope the suppression to the exact line and leave a reason, never disable the rule project-wide. Disable directives are line-scoped by design.
// oauthlint-disable-next-line auth.oauth.broad-scope -- <reason>