# Can I embed assets into an orb?

**URL:** <https://discuss.circleci.com/t/can-i-embed-assets-into-an-orb/41330>\
**Category:** Orbs\
**Created:** [September 24, 2021, 11:54am UTC](https://discuss.circleci.com/t/can-i-embed-assets-into-an-orb/41330 "2021-09-24T11:54:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aarlaud](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/aarlaud/32/28204_2.png) [@aarlaud](https://discuss.circleci.com/u/aarlaud)\
**Post date:** [September 24, 2021, 11:54am UTC](https://discuss.circleci.com/t/can-i-embed-assets-into-an-orb/41330/1 "2021-09-24T11:54:25Z")

</div>

Hey fellows,

I’m building an orb to encapsulate helm chart validation logic for our teams. It mostly checks a bunch of policies dictated via rego policies. I’d like to embed those policies into the orb rather than having a downloadable storage somewhere and deal with the auth and such.  
Do I have a way to add asset files to an orb or I’ll be forced to inline it all into my script?

Thanks for the help!  
Cheers!  
Antoine

---

<div class="post-metadata">

**Author:** ![jlenos](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jlenos](https://discuss.circleci.com/u/jlenos)\
**Post date:** [September 24, 2021, 1:47pm UTC](https://discuss.circleci.com/t/can-i-embed-assets-into-an-orb/41330/2 "2021-09-24T13:47:00Z")

</div>

If the assets are bash scripts, CircleCI provides a way to include them through `circleci orb pack` CLI command.

References:  
[https://circleci.com/docs/2.0/orb-concepts/#orb-packing](https://circleci.com/docs/2.0/orb-concepts/#orb-packing)  
[https://circleci.com/docs/2.0/orb-author/#scripts](https://circleci.com/docs/2.0/orb-author/#scripts)

---

<div class="post-metadata">

**Author:** ![aarlaud](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/aarlaud/32/28204_2.png) [@aarlaud](https://discuss.circleci.com/u/aarlaud)\
**Post date:** [September 24, 2021, 2:22pm UTC](https://discuss.circleci.com/t/can-i-embed-assets-into-an-orb/41330/3 "2021-09-24T14:22:46Z")

</div>

Thanks.  
They are .rego files. I don’t think that’ll work as it’s inlining it in the command. It’s more like I need a bunch of files on the file system to use. I guess I’ll have to use a custom docker image instead to bring those in… was trying to avoid that

---

<div class="post-metadata">

**Author:** ![aarlaud](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/aarlaud/32/28204_2.png) [@aarlaud](https://discuss.circleci.com/u/aarlaud)\
**Post date:** [September 27, 2021, 1:06pm UTC](https://discuss.circleci.com/t/can-i-embed-assets-into-an-orb/41330/4 "2021-09-27T13:06:23Z")

</div>

Closing this, switched to a different executor using an image embedding what I needed.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [October 7, 2021, 1:07pm UTC](https://discuss.circleci.com/t/can-i-embed-assets-into-an-orb/41330/5 "2021-10-07T13:07:10Z")

</div>

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