Github Actions with custom registry

I know this isn't a Github forum, but seeing as most people here use Github and fewer people on Github use rust, I figure this is the best place to ask. I have a custom crate registry for my companies closed-source crates we use, and we are trying to get Github actions to work. Unfortunatally, I can't seem to get the "cargo login" command to work, it gives this error:

Caused by:
  failed to fetch ``

Caused by:
  failed to authenticate when downloading repository

  * attempted to find username/password via git's `credential.helper` support, but failed

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  failed to acquire username/password from local configuration

I know this is an issue with not being logged in to Github on the Actions machine, and that I had to be logged in on my machine to use crates from the registry, so my question is this: Is it possible to log in to Github directly in a Github actions run such that "cargo login" will work?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.