Cloud Source Repositories is End of Sale. In preparation for the deprecation
of this service, this page outlines migration options for multiple use cases. A
shutdown date will be communicated at least one year before the shutdown occurs to provide time for you to successfully migrate to an alternative product.

All users must migrate their repositories before the shutdown date. Review the
following migration options to begin planning your migration.

## Migration guides

- [### Migrate to Secure Source Manager
  This guide provides the necessary steps to successfully migrate a Git repository, including all repository information, from Cloud Source Repositories to Secure Source Manager.](https://docs.cloud.google.com/source-repositories/docs/csr-ssm-migration-guide)
- [### Translate Cloud Source Repositories roles and permissions to Secure Source Manager
  This guide explains how roles and permissions in Cloud Source Repositories map to those in Secure Source Manager.](https://docs.cloud.google.com/source-repositories/docs/csr-ssm-permission-mapping)

## Determine your repository usage

To plan your migration, first identify all of your Cloud Source Repositories.
You can view your repositories by going to the [Source Repositories page](https://source.cloud.google.com) and using the project selector to search for projects that contain repositories. To access a repository, you need the
appropriate Identity and Access Management (IAM) permissions, such as Project Owner or
Source Repository Administrator.

After you identify a repository, determine if it is still in use or connected to
a build system. If a repository is not in use, delete it. Deleting unused
repositories helps with the deprecation process and stops future notifications.

## Migration paths by use case

The following table maps common Cloud Source Repositories use cases to
recommended migration paths.

| Use case | Migration path |
|---|---|
| Software development | [Secure Source Manager](https://docs.cloud.google.com/secure-source-manager/docs/overview.md.txt) or a third-party source code management system. |
| Integrating with Cloud Build | If your Cloud Source Repositories are a mirror of an external repository used to trigger Cloud Build, see [Connect Cloud Build to your source code management system](https://docs.cloud.google.com/build/docs/triggers.md.txt) or set up a [webhook trigger](https://docs.cloud.google.com/build/docs/automate-builds-webhook-events.md.txt). |
| Kubernetes config sync and other infrastructure as code use cases | [Artifact Registry OCI](https://docs.cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/how-to/sync-oci-artifacts-from-artifact-registry) / [Helm](https://docs.cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/how-to/sync-helm-charts-from-artifact-registry), [Secure Source Manager](https://docs.cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/how-to/grant-access-git) or other source code management systems. |
| Backing up source code repositories | A third-party backup solution. For an example, see [Configuring backups on your instance](https://docs.github.com/en/enterprise-server@3.17/admin/backing-up-and-restoring-your-instance/configuring-backups-on-your-instance) in the GitHub documentation. |
| Private network connectivity | For use cases, see [Developer Connect and Service Directory](https://docs.cloud.google.com/developer-connect/docs/connect-github-enterprise-private.md.txt). If you need manual triggers, Pub/Sub, webhook, or terraform support, see [Cloud Build Repositories](https://docs.cloud.google.com/build/docs/repositories.md.txt#feature-support). If you are using Cloud Source Repositories to connect Cloud Build Repositories to GitHub Enterprise in a private network, see [Build repositories from GitHub Enterprise in a private network](https://docs.cloud.google.com/build/docs/automating-builds/github/build-repos-from-github-enterprise-private-network.md.txt?generation=2nd-gen). For infrastructure as code and private network support see [Artifact Registry OCI](https://docs.cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/how-to/sync-oci-artifacts-from-artifact-registry) and [Helm](https://docs.cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/how-to/sync-helm-charts-from-artifact-registry). |
| Using Cloud Debugger or Error Reporting | Connect to another Git provider. |

## What's next

- [Secure Source Manager overview](https://docs.cloud.google.com/secure-source-manager/docs/overview.md.txt)
- [Use Git with Secure Source Manager](https://docs.cloud.google.com/secure-source-manager/docs/use-git.md.txt)
- [Create an instance](https://docs.cloud.google.com/secure-source-manager/docs/create-instance.md.txt)