# Parse \`payload\` (GitHub deployments)

**URL:** https://drone.discourse.group/t/parse-payload-github-deployments/4389
**Category:** Drone Support
**Created:** [November 6, 2017, 8:35pm UTC](https://drone.discourse.group/t/parse-payload-github-deployments/4389 "2017-11-06T20:35:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![CentaurWarchief](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/centaurwarchief/32/4050_2.png) [@CentaurWarchief](https://drone.discourse.group/u/CentaurWarchief)
#### Post date: [November 6, 2017, 8:35pm UTC](https://drone.discourse.group/t/parse-payload-github-deployments/4389/1 "2017-11-06T20:35:21Z")

</div>

Hey y’all. Is there any way to read `payload` from GitHub deployment event and inject the JSON into a environment variable? So I can read it using jq and extract extra information for my deployments

---

<div class="post-metadata">

### Author: ![ozbillwang](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ozbillwang/32/3947_2.png) [@ozbillwang](https://drone.discourse.group/u/ozbillwang)
#### Post date: [November 6, 2017, 11:19pm UTC](https://drone.discourse.group/t/parse-payload-github-deployments/4389/2 "2017-11-06T23:19:08Z")

</div>

Didn’t use payload before, but Drone doesn’t support to inject system environments on-fly and automatically inherit with next steps.

So you have to save it to a file, such as `payload.json`, all rest pipeline steps will be able to read it directly.

---

<div class="post-metadata">

### Author: ![CentaurWarchief](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/centaurwarchief/32/4050_2.png) [@CentaurWarchief](https://drone.discourse.group/u/CentaurWarchief)
#### Post date: [November 7, 2017, 12:15am UTC](https://drone.discourse.group/t/parse-payload-github-deployments/4389/3 "2017-11-07T00:15:27Z")

</div>

Right, but how do I currently read it from the event?
