Find dangerous workflow triggers

MSAL

Detects use of fundamentally insecure workflow triggers like pull_request_target and workflow_run. These triggers run with elevated privileges and are almost always used insecurely, potentially allowing code injection from untrusted sources. Based on zizmor's dangerous-triggers audit.

org.openrewrite.github.security.DangerousTriggers
mod run . --recipe=org.openrewrite.github.security.DangerousTriggers

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