What GitHub permissions are needed to publish an orb?

Orb Publishing Permissions

To publish an orb in CircleCI, you need to be an owner of the organization. This is because the circleci orb publish command for production versions requires owner-level permissions. This is set by your Version Control System (VCS), such as GitHub. If you are authoring or publishing orbs for a namespace owned by another organization, you may require assistance from your organization admin.
 

Permissions Matrix

Here is the permissions matrix for Orb CLI commands:
 
Orb Command Permission Scope
circleci namespace create Owner
circleci orb init Owner
circleci orb create Owner
circleci orb publish development version Member
circleci orb publish production version Owner
 

Workaround

However, there is a workaround to allow non-organization owners to publish an orb. This can be done via a context associated with an organization owner's personal API token. The organization owner will need to generate a personal API token, store the token in a context to be used as an environment variable, and call the environment variable CIRCLE_TOKEN. Using the Orb Development Kit, assign the publishing-context to the newly-created context.
 

Additional Resources

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.