Plugin installation from private repository with .netrc file authentication

Hello community, I have a question if anyone has experience with installing a plugin where we need to use authentication for a repository with a .netrc file. I would like to install such a plugin in sonarqube which I implement with helm chart, but I have a problem with it. Maybe someone in the community has done it?