Coder Social home page Coder Social logo

Comments (5)

shubear avatar shubear commented on August 22, 2024

I even tried using SSH keys mentioned in this documentation, and it continues to fails

from unity-test-runner.

shubear avatar shubear commented on August 22, 2024

Update on the issue, i managed to get SSH to run by changing the manifest.json dependencies to use ssh ssh://[email protected]/
Previously it was https://github.com/
Is there a way for the actions to work with https ?

from unity-test-runner.

GabLeRoux avatar GabLeRoux commented on August 22, 2024

I haven't tested this, this is only a suggestion, but here's what I would try:

Since you still need authentication to happen when using https (for private repositories), you might need to find a way to execute the following in the container where git commands happen. I don't exactly know where and how to do it as part of github-actions

git config credential.helper '!f() { sleep 1; echo "username=${GIT_USER}"; echo "password=${GIT_PASSWORD}"; }; f'

This will configure git credentials using environment variables. ref: https://stackoverflow.com/a/43022442/1092815

To achieve this, it might be necessary to fork the game-ci/unity-test-runner action or the builder (depending on what you're trying to achieve) and inject this command before the test or build command happens.

It would also be preferable to use ${{ secrets.GITHUB_TOKEN }} instead of actual username/password credentials.

Also note that this is just a suggestion and a workaround. There is most likely a better way than that. Using ssh is indeed much easier than the above ;)

Here are some documentation concerning authentication in a workflow for github-actions and the GITHUB_TOKEN secret:
https://docs.github.com/en/actions/reference/authentication-in-a-workflow

from unity-test-runner.

webbertakken avatar webbertakken commented on August 22, 2024

Perhaps you could also manipulate git config to use ssh in CI over https.

I recently saw a great example of how to do this.

from unity-test-runner.

davidmfinol avatar davidmfinol commented on August 22, 2024

Should be fixed by #152

from unity-test-runner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.