# Fill sensitive field with script generated env variable

**URL:** https://discuss.bitrise.io/t/fill-sensitive-field-with-script-generated-env-variable/9478
**Category:** Question & Answer
**Created:** [July 2, 2019, 12:12pm UTC](https://discuss.bitrise.io/t/fill-sensitive-field-with-script-generated-env-variable/9478 "2019-07-02T12:12:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![szabot](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/szabot/32/2371_2.png) [@szabot](https://discuss.bitrise.io/u/szabot)
#### Post date: [July 2, 2019, 12:12pm UTC](https://discuss.bitrise.io/t/fill-sensitive-field-with-script-generated-env-variable/9478/1 "2019-07-02T12:12:57Z")

</div>

Greetings,

I would like to use “deploy to [bitrise.io](http://bitrise.io)” step “Notify email” field with dynamic email list (based on the user who triggered the actual build in gitlab), but the field is sensitive so i can only use constant secrets.  
Is there any workaround to use this field with an env var generated by a previous script step, or write data into a secret whit a script?

Thanks,  
Tamas

---

<div class="post-metadata">

### Author: ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)
#### Post date: [July 3, 2019, 10:05am UTC](https://discuss.bitrise.io/t/fill-sensitive-field-with-script-generated-env-variable/9478/2 "2019-07-03T10:05:52Z")

</div>

Hi @szabot!

Thanks for raising this question. You could use our [envman](https://github.com/bitrise-io/envman) tool to overwrite secrets through a script just as with regular environment variables.  
This is best explained here: [https://devcenter.bitrise.io/tips-and-tricks/expose-environment-variable/](https://devcenter.bitrise.io/tips-and-tricks/expose-environment-variable/)

---

<div class="post-metadata">

### Author: ![szabot](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/szabot/32/2371_2.png) [@szabot](https://discuss.bitrise.io/u/szabot)
#### Post date: [July 9, 2019, 12:26pm UTC](https://discuss.bitrise.io/t/fill-sensitive-field-with-script-generated-env-variable/9478/3 "2019-07-09T12:26:49Z")

</div>

Hi @bitce,

Thank you for the answer.  
I tried envman but i mistyped the syntax and i tought it’s not working for secrets.  
My fault.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)
#### Post date: [August 8, 2019, 12:26pm UTC](https://discuss.bitrise.io/t/fill-sensitive-field-with-script-generated-env-variable/9478/4 "2019-08-08T12:26:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
