game-ci / unity-orb

Build and test Unity projects for several platforms using CircleCI.
https://circleci.com/developer/orbs/orb/game-ci/unity
MIT License
7 stars 12 forks source link

Unity build fails to access private Git repositories in Docker environment #65

Open marian-ciortea-mt opened 5 months ago

marian-ciortea-mt commented 5 months ago

Orb version

1.6.0

Execution environment

Bug description

The unity/build command fails to access private Git repositories due to lack of Git credential configuration in the Docker environment. This command works fine in Linux and MacOS execution environments.

How to reproduce

Expected behavior

The build process should authenticate and access private Git repositories seamlessly, resolving all dependencies.

Additional details

Returned error:

An error occurred while resolving packages:
  Project has invalid dependencies:
    <git package>: Error when executing git command. Host key verification failed.
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.

Currently, the script doesn't handle Git authentication for private repositories inside the Docker container, leading to failed builds when private dependencies are involved.