-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Broken submodule kills self-hosted runners completely #590
Copy link
Copy link
Open
Description
- Add a submodule which points to missing commit
- Run GH actions using a self-hosted runner
- The self-hosted runner will be completely handicapped after that - all further tasks will fail, even from different branches:
[REDACTED]
Run actions/checkout@v2
with:
repository: xxx/yyy
token: ***
ssh-strict: true
persist-credentials: true
clean: true
fetch-depth: 1
lfs: false
submodules: false
Syncing repository: xxx/yyy
Getting Git version info
Working directory is '/home/runner/_work/xxx/yyy'
/usr/bin/git version
git version 2.25.1
/usr/bin/git config --local --get remote.origin.url
https://github.com/xxx/yyy
Removing previously created refs, to avoid conflicts
/usr/bin/git rev-parse --symbolic-full-name --verify --quiet HEAD
HEAD
/usr/bin/git rev-parse --symbolic-full-name --branches
/usr/bin/git rev-parse --symbolic-full-name --remotes=origin
refs/remotes/origin/master
Cleaning the repository
/usr/bin/git clean -ffdx
/usr/bin/git reset --hard HEAD
HEAD is now at d12323f XXXXXXXX
Disabling automatic garbage collection
/usr/bin/git config --local gc.auto 0
Setting up auth
/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
Error: fatal: No url found for submodule path 'broken/submodule' in .gitmodules
Error: The process '/usr/bin/git' failed with exit code 128
To clarify - you need to run CI on this branch ONCE and all further runs on ALL branches will fail.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels