Clean-up repository on GitHub self-hosted Runner

Dipesh Shah
1 min readApr 22, 2022

Recently I came across a scenario where out-of-the-box GitHub checkout action failed with below error related to submodules

Error:

No url found for submodule path ‘xxx’ in .gitmodules

The process ‘/usr/bin/git’ failed with exit code 128

Root cause: I removed couple of npm packages from package.json file and ran npm audit fix which updated the dependencies and submodules for my api. However the self-hosted github runner cached the submodules in .git folder and since my…

--

--

Dipesh Shah

Enterprise Cloud Solution Architect, DevOps Lead, Learner