Use GitHub for connected repositories. This is the preferred SaaS mode because the worker can clone or fetch the source consistently in staging and production.
Use local folder or ZIP upload when the repository exists only on your machine. The browser creates an immutable upload snapshot; the server never receives direct filesystem access.
Server and network mounts
Advanced users can scan mounted Linux paths visible to both the API and worker containers. Windows paths such as D:\Git\... and raw UNC shares are not directly visible to the Linux worker unless mounted on the server and exposed as a Linux container path.
Use the customer agent when source must stay inside a customer network. Create an agent project, register the agent, submit a signed manifest, create an upload session, upload the ZIP snapshot, then start the run after source preflight shows the latest snapshot is ready.