What’s the Best Way to Share Code with External Parties?

0
2
Asked By CodeCrafter_92 On

I'm currently working at a company and need to share some code with an external party. The access needs to be read-only, like how a vendor might deliver code to a client. I'm exploring a few options but none seem perfect: 1. I could add them directly to our repository and adjust permissions, but that would incur extra charges per seat which is a hassle. 2. I could share the code via Google Drive, but I want to be able to update the code later and have them easily grab the latest version, which isn't straightforward with Drive. 3. I'm leaning towards creating a Personal Access Token (PAT) scoped to just that repository, but it feels a bit insecure. Deploy keys are also an option I considered. I would love to hear how others have managed this and what solutions have worked in their professional experience!

3 Answers

Answered By TechSavvy_21 On

A simpler option might be to use CI/CD pipelines to send the latest build artifacts to a storage service like S3. Instead of sharing the repo directly, you can share the links to those build artifacts. It eliminates the need for them to understand GitHub and keeps things tidy. Plus, you can always update the artifacts whenever necessary.

Answered By DevGuru_77 On

If you're fairly technical, you might consider hosting the repo on a server where you have SSH access. You can create a bare git repo there, give the client access for cloning and pulling updates without them needing to mess with your main repository. It's a pretty secure way to share without needing a license or worrying about them pushing changes to your main codebase. Just make sure you set up your firewall correctly to only allow their IP to access it. Sounds like a good solution to me!

Answered By CodeWatcher_48 On

Make sure to check your company’s policies on sharing code. It’s crucial to have access logs and a non-disclosure agreement to protect yourself legally. Depending on your organization, you might consider setting up guest accounts or creating a managed shadow repository. Just ensure that your manager is on board with whatever arrangement you choose.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.