CircleCI-Public / orb-tools-orb

Various tools for authoring and publishing CircleCI orbs
https://circleci.com/orbs/registry/orb/circleci/orb-tools
MIT License
51 stars 74 forks source link

Prevent invalid warning when var ENV 'ORB_PARAM_ORB_PUB_TOKEN' isn't define #167

Closed benoittgt closed 1 year ago

benoittgt commented 1 year ago

I know the resolution of this issue can appears weird. But it just happen to me and I had to look at the source code to understand. Also I think the doc should mention that it is required.

This is ORB_PARAM_ORB_PUB_TOKEN but it is defined via a parameter with a default as CIRCLE_TOKEN.

If you set ORB_PARAM_ORB_PUB_TOKEN in a context it will not work with the orb template but if you set CIRCLE_TOKEN it is working properly.

KyleTryon commented 1 year ago

Thank you @benoittgt 🙏 . I see what happened here, ORB_PARAM_ORB_PUB_TOKEN is actually somewhat correct, but only to the internally scoped step, so even if you set this, it would not work. So This is perfect 👍

orb-publisher commented 1 year ago

Your development orb has been published. It will expire in 30 days. You can preview what this will look like on the CircleCI Orb Registry at the following link: https://circleci.com/developer/orbs/orb/circleci/orb-tools?version=dev:b2058d635bed47809091dfa22ba76d19d1cb5a69