Access Webhook which triggered build from command steps

Sometimes builds need to do things which depend on deeper details hidden within a webhook which has triggered a build. For example:

  • Switch to a different repository before checkout, for multi-repo workflows
  • Look at the changed files in a push event for monorepo builds
  • See the specific GitHub user who pushed a branch versus the commit author

It’s be great to have a command like buldkite-agent webhook get which returned the full webhook body which triggered a build available within a command step.

:pray: this would be amazing