Hi. I am trying to run a github workflow step to l...
# linting
r
Hi. I am trying to run a github workflow step to lint modules on a remote private repo (ext-core). It does not seem to work. First screenshot below. If I configure a SSH token locally to the git org and run the command, it lints (second screenshot below) correctly. Using a personal access token with repo permissions is not throwing errors but does not lint as well (0 tests passed). Did anyone encounter such issues and know a way to run
nf-core modules lint
on private remote repos using app tokens?
I figured out the issue. Looking at the source code https://github.com/nf-core/tools/blob/52e810986e382972ffad0aab28e94f828ffd509b/nf_core/components/lint/__init__.py#L101 --> repo_url from the modules.json is not matching remote_url passed using '-g' or '--git-remote' option because the remote_url contains the authentication token and modules.json has the plain repo url from where the module was imported. To address the issue, I had to authenticate with the remote repo in a step before and use the regular git url to lint remote modules. Hope that helps someone in the future.