Interview Prep/Git & GitHub/GitHub Actions, environments and releases in production

What are the production risks of `workflow_run` and `repository_dispatch` triggers?

AdvancedProductionGitHub Actions, environments and releases in production
Answer

They run in the default branch context with write tokens and secrets, so any untrusted data they consume (artifact contents, client_payload) is an injection vector. Validate and sanitise inputs, never execute artifact content, restrict who can dispatch, and keep the privileged workflow minimal.

All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub Actions, environments and releases in production