Problem
When trying to create or publish an orb, you might come across one of the following authorization errors:
Error: Unable to find organization <YOUR_ORGANIZATION> of vcs-type GITHUB: Either the org 'github/<YOUR_ORGANIZATION>' does not exist or you do not have permission to view it.: the organization '<YOUR_ORGANIZATION>' under 'GITHUB' VCS-type does not exist. Did you misspell the organization or VCS?
Error: AUTHORIZATION_FAILURE
Error: User does not have access to publish SemVer orbs in this namespace.
Solutions:
-
Verify that you have the right permission level to execute the command
- You can find the required permissions for the orb commands in this permissions matrix in our documentation
-
Your CircleCI API Token might have expired or became invalid
- Please try generating a new personal API token.
You will need to update the CircleCI CLI so that theCIRCLE_TOKEN
environment variable is set to the new value. Please make sure theCIRCLE_TOKEN
environment variable is also updated in any related contexts. This is usually "orb-publishing" - If you are not an admin of the organization and have been granted permission by the admin to publish an orb, please reach out to the admin user to generate a new API token.
- Please try generating a new personal API token.
Outcome
Once you have verified that your user has the correct permissions and the API token has been re-generated and updated on the CircleCI CLI and the orb publishing context, you should be able to run the commands again.
Additional Resources:
- Introduction to Authoring Orbs
- Create an orb
- Creating a personal API token
- Create and use context
- Ensure your orb-publishing context is restricted
Comments
Article is closed for comments.