Hello! Iām looking for insights from anyone who has gotten leiningen to talk to github private package repositories. Following GH documentation, I have created a personal access token with read:packages permission and added it to my encrypted ~/.lein/credentials.clj.gpg file. I have a repositories block in my project.clj that points to
:repositories [["ourrepo" {:url " "
:creds :gpg
:checksum :warn}]]
but I am getting a 422 status code back from the GH maven package endpoint when I try to lein deps from my project to pull our private library down. Has anyone gotten this to work for themselves?Quick googling points out that this might be caused by eg. artifact name having uppercase letters, that is, your problem might be elsewhere... š Would need to see more/the entire project.clj for that, but as said, seems this is easily googlable so maybe go that route so you don't have to obfuscate project.clj just to share it. And fwiw, I've always had huge issues with gpg itself, but that might be just me.
When I worked on this (two weeks ago!) I started with my credentials in my profile.clj file and then worked up from there. Eventually I switched to GPG but I found it kind of tough to figure out what wasn't working.
Anyway, I believe you need your organization name in the repository URL. My understanding is that each project on GitHub has it's own, unique URL that we point to for publishing.
These "roll up" to your organization specific URL and we can use that URL to download any of our own packages (we don't need to add a repository URL for each of our GH published packages).
In your example, I think you want the URL to be something like , that should let you download any of your published packages. I think. I mean, it worked that way for me. š