Error encountered at accessing organisation private orb via org_slug

Hi there, I am implementing CircleCi orbs for my organisation and we created 3 separate orbs by design. All of the orbs are private. My issue right now is Orb A trying to access Orb.

From what I read in CircleCi/Orb-tools , I would have to include org_id / org_slug if I need to access my organisation’s private Orb

When I used org_id, it worked and I was able to access the private orb. However, when I used org_slug, I encountered this error message: failed to get the appropriate org-id: You must log in first.

I could not pass my Circle Token as a parameter for pack job as it does not have a parameter for it. I did try to include a context with a circle token as part of the env var but I got the same issue above.

Though I can use the org_id, I did not used an env var ($CIRCLE_ORGANIZATION_ID) but the entire UUID and I would like to treat it as a private variable instead of public.

Please advise

Resolved by implementing a pre-step parameter


          pre-steps:
            - run:
                name: Export Org ID
                command: |
                  echo "export ORB_VAL_ORG_ID=${ORG_ID}" >> "$BASH_ENV"

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