Comments (8)
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.
I did the write-up over there #33, let me know if that clarifies things
from ci.
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.
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.
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.
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.
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.
Oh this might work https://stackoverflow.com/questions/29776439/username-and-password-in-command-for-git-push
from ci.
Related Issues (20)
- Unable to add new projects: Invalid Lane Name HOT 7
- Build logs formatting HOT 2
- Project Settings Dialog HOT 1
- fastlane.ci: command not found HOT 2
- Crash on startup after pulling master HOT 3
- Link to build output uses old _erb template
- Think about security threat model for the GH API token more HOT 5
- Stub out the dot keys access globally for all rspec tests HOT 1
- Each project should define a default branch HOT 1
- Support for application specific password for iTunes Transporter HOT 1
- Fix tests that broke recently
- Exposing the GIT_BRANCH ENV variable won't work if user builds specific SHA HOT 1
- update websocket client for builds. HOT 2
- Vagrant provisioning failure HOT 1
- Remove the "no_platform" from the dropdown when adding a new project HOT 2
- Build details should show the build status HOT 1
- New projects should always have a manual trigger HOT 2
- docker deployment 502 under nginx proxy HOT 1
- Initial Run Problem: "can't find executable foreman for gem foreman." HOT 2
- Blank page after bundle exec rake dev
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ci.