Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Broken submodule kills self-hosted runners completely #590

@rtsisyk

Description

@rtsisyk
  1. Add a submodule which points to missing commit
  2. Run GH actions using a self-hosted runner
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions