Coder Social home page Coder Social logo

Comments (2)

KrauseFx avatar KrauseFx commented on May 6, 2024

Alright, quick update on the git pull and git push using the user's session. A few things:

We currently have:

  • GitConfigDataSource, which is a data source for configuration files, meaning list of projects, and CI config
  • GitHubSource, the connection to GitHub, GitHub specific, used to report build status, list repos, etc.

We need a new class that does the git overhead, around auth, error handling, managing of repos, etc. What I was thinking, having a GitHelper class, that does it. As part of each method call, we require the user of the class to pass a valid GitHub session. The class also verifies that we only work with https:// URLs just to unify the whole thing.

The user of the method call can decide:

I started looking into how git auth works for temporary pulls and pushes, and it seems like there is no good built-in way to contain the whole thing. Will consult with some of my friends who know more about git.

It's tricky to pass the credentials, without affecting the whole system, and not leaking the data anywhere (build output, error case, etc.)

Open TODOs

  • The things above
  • When and how do we authenticate the CI itself for the second kind of git commits? Where and how do we store the login?

from ci.

KrauseFx avatar KrauseFx commented on May 6, 2024

Moved to #33

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.