As part of a release workflow, the newly built collection is published to galaxy but this step produces an error:
Run ansible-galaxy collection publish ./$NAMESPACE-$COLLECTION-$NEW_VERSION.tar.gz --api-key=***
ansible-galaxy collection publish ./$NAMESPACE-$COLLECTION-$NEW_VERSION.tar.gz --api-key=***
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.11.5/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.5/x64/lib
NEW_VERSION: 2.1.14
NAMESPACE: cloin
COLLECTION: eda
ERROR! Error when publishing collection to default (https://galaxy.ansible.com/api/) (HTTP Code: 403, Message: You do not have permission to perform this action. Code: permission_denied)
Publishing collection artifact '/home/runner/work/cloin.eda/cloin.eda/cloin-eda-2.1.14.tar.gz' to default https://galaxy.ansible.com/api/
Error: Process completed with exit code 1.
I tried regenerating the token and it failed again.
Upon logging into galaxy and looking at my namespaces, I can see that my namespaces lists “cloin0” instead of “cloin”. “cloin0” is empty. If I navigate to the url for the “cloin” namespace, I see my published collections.
I’m guessing that my publish command fails because I now do not have permissions on the “cloin” namespace, only “cloin0” which I did not create.
@cloin We’ve deployed a patch that resolves the N namespace problem. I’ve also manually cleaned up your extra namespaces and fixed your account permissions. Please check again.
Hi @tannerjc
Failing tests; same as @cloin faced
Could you please do the same for me as well?
original (to keep and allow permissions): iamgini
new (need to remove): iamgini0
Looks like issue is still here. I can’t push anymore, but theres another clone of my account with 0 prefix that probably can (according to this topic). Not sure if I should post this but my left side keeps laughing that I am already locked out
Just as a note to anyone following this thread because they also posted in it with the same issue, I just checked my Galaxy NG account and my namespace is back to normal.