# Expose Pipeline Environment Variables to Each Build Step

**URL:** <https://drone.discourse.group/t/expose-pipeline-environment-variables-to-each-build-step/10739>\
**Category:** Drone Support\
**Created:** [October 26, 2020, 3:55am UTC](https://drone.discourse.group/t/expose-pipeline-environment-variables-to-each-build-step/10739 "2020-10-26T03:55:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [October 26, 2020, 4:09am UTC](https://drone.discourse.group/t/expose-pipeline-environment-variables-to-each-build-step/10739/2 "2020-10-26T04:09:50Z")

</div>

> [@Drone exec does not simulate pull requests correctly](https://drone.discourse.group/t/drone-exec-does-not-simulate-pull-requests-correctly/8242/1):
>
> These are the environment variables that I would like my steps to have access to: [Reference | Drone](https://docs.drone.io/pipeline/environment/reference/)

The environment variables at the referenced link are automatically injected into every pipeline step. See the following yaml and build for reference:

- [https://github.com/drone/hello-world/blob/9205b1510a5ba7dcce29df4e61e8dfece6040b1b/.drone.yml](https://github.com/drone/hello-world/blob/9205b1510a5ba7dcce29df4e61e8dfece6040b1b/.drone.yml)
- [Drone CI](https://cloud.drone.io/drone/hello-world/193/1/2)

---

_[View the full topic](https://drone.discourse.group/t/expose-pipeline-environment-variables-to-each-build-step/10739)._
