# How to pass a secret to Galaxy's role as parameter?

**URL:** <https://forum.ansible.com/t/how-to-pass-a-secret-to-galaxys-role-as-parameter/36691>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [June 6, 2022, 10:29am UTC](https://forum.ansible.com/t/how-to-pass-a-secret-to-galaxys-role-as-parameter/36691 "2022-06-06T10:29:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zulhilmi\_Zainudin](https://avatars.discourse-cdn.com/v4/letter/z/45deac/32.png) [@Zulhilmi\_Zainudin](https://forum.ansible.com/u/Zulhilmi_Zainudin)\
**Post date:** [June 6, 2022, 10:29am UTC](https://forum.ansible.com/t/how-to-pass-a-secret-to-galaxys-role-as-parameter/36691/1 "2022-06-06T10:29:46Z")

</div>

Tree structure:  
.  
├── README.md  
├── galaxy  
│ ├── requirements.yaml  
│ └── roles  
│ └── github-runner.yaml  
└── inventories  
└── hosts.yaml

3 directories, 4 files

_galaxy/requirements.yaml_ content:

---

<div class="post-metadata">

**Author:** ![gtirloni](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gtirloni/32/4562_2.png) [@gtirloni](https://forum.ansible.com/u/gtirloni)\
**Post date:** [June 6, 2022, 3:33pm UTC](https://forum.ansible.com/t/how-to-pass-a-secret-to-galaxys-role-as-parameter/36691/2 "2022-06-06T15:33:46Z")

</div>

What was the error with using lookup()?
