# Access Webhook which triggered build from command steps

**URL:** <https://forum.buildkite.community/t/access-webhook-which-triggered-build-from-command-steps/1378>\
**Category:** Features Requests\
**Created:** [December 10, 2020, 2:32am UTC](https://forum.buildkite.community/t/access-webhook-which-triggered-build-from-command-steps/1378 "2020-12-10T02:32:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sj26](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/sj26/32/17_2.png) [@sj26](https://forum.buildkite.community/u/sj26)\
**Post date:** [December 10, 2020, 2:32am UTC](https://forum.buildkite.community/t/access-webhook-which-triggered-build-from-command-steps/1378/1 "2020-12-10T02:32:09Z")

</div>

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](https://github.com/buildkite/feedback/issues/238)
- 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.

---

<div class="post-metadata">

**Author:** ![vitalii](https://avatars.discourse-cdn.com/v4/letter/v/d6d6ee/32.png) [@vitalii](https://forum.buildkite.community/u/vitalii)\
**Post date:** [December 10, 2020, 7:59am UTC](https://forum.buildkite.community/t/access-webhook-which-triggered-build-from-command-steps/1378/2 "2020-12-10T07:59:45Z")

</div>

🙏 this would be amazing
