Coder Social home page Coder Social logo

Comments (8)

taquitos avatar taquitos commented on August 23, 2024

Can you tell me what the use case is here and why this is important?

I think fastlane.ci will need a specific github CI account in order to use an auth token

from ci.

KrauseFx avatar KrauseFx commented on August 23, 2024

I did the write-up over there #33, let me know if that clarifies things

from ci.

taquitos avatar taquitos commented on August 23, 2024

Ok, I think all the API we create should be on a service, and the API should take a Provider
If it's on behalf of the user, we should take the user's provider
if it's on behalf of the server, we should use the ci's provider
Does this make sense?

from ci.

KrauseFx avatar KrauseFx commented on August 23, 2024

Yes, that's perfect. I just didn't figure out yet, what's the best way to use the proper authentication in git. Meaning how can I look in a given user account using the API token, without affecting any other git actions, or the system git. Need to do more investigation

from ci.

taquitos avatar taquitos commented on August 23, 2024

Now you can choose which ProviderCredential to use with most service APIs.
So you can either take action on behalf of a user, or you can use the system account, or you can take action as the user. So many options for what you want to do!

from ci.

KrauseFx avatar KrauseFx commented on August 23, 2024

Ah sorry, I didn't explain it well enough. When you run git push, your GitHub credentials are being used. Depending on the system, those are stored somewhere, either keychain, random config files, or nowhere.

What we need to do, as part of pushing changes as up as CI, we need to authenticate this git push command to use the ProviderCredential you mentioned, so that we can authenticate against GitHub. The tricky piece is that we only want to temporarily set those credentials, instead of setting it system wide. So we want to use the Josh account, or the CI bot account for just this one specific git push, as the next time we run git push, we might be using a different account, and the user might run CI on their local machine, so they expect us to not modify the system-wide credentials.

from ci.

taquitos avatar taquitos commented on August 23, 2024

Yup, makes sense. I think with our current setup that is possible. It would help to chat about specific instances and code to know exactly what you need 👍

from ci.

KrauseFx avatar KrauseFx commented on August 23, 2024

Oh this might work https://stackoverflow.com/questions/29776439/username-and-password-in-command-for-git-push

from ci.

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.