---
title: "Link repositories and environments | Proofline Help"
description: "Link a repository to each environment where its code runs. These links tell Proofline which infrastructure context belongs to a change."
url: https://proofline.sh/help/repository-environments/
---

[Help center](/help/)

# Link repositories and environments

Link a repository to each environment where its code runs. These links tell Proofline which infrastructure context belongs to a change.

[![Production environment settings with deployment review controls.](/help-images/environment-setup-light.png)](/help-images/environment-setup-light.png)

Set delivery and deployment reviews for this environment. Fictional demo workspace.

## Add an environment link

1.  Open **Environments**, choose the environment where this code deploys, and open **Setup → Repositories**.
2.  Select **Add**, then choose the repository from **Link a repository**.
3.  For GitHub Actions, select the GitHub Environment names this repository deploys to. If the workflow deploys without one, choose **No GitHub Environment (workflow-only)**. An empty discovery list alone does not establish that the workflow deploys without a GitHub Environment.
4.  Select **Link repository**. Repeat these steps for each environment where the code deploys.

The repository’s **Settings → Setup** page lists its linked environments. When the repository has no links, an administrator can select **Set up an environment** there to open guided setup.

A workflow-only link uses workflow runs as delivery evidence. It supplies no GitHub deployment-environment coverage or custom protection rule. Proofline records no deploy from a workflow run, so deploy checks for a workflow-only repository start only when an AWS CodePipeline pipeline or Amplify branch bound under the environment's **Setup → Delivery** records its deploys. Without that binding, the environment's **Setup → Repositories** says no deploy is recorded and offers both fixes: select a GitHub Environment for the link, or bind an AWS delivery.

## Confirm delivery

Repository **Settings → Setup** confirms delivery for the whole repository. Cloud Build, AWS and other environment-specific delivery systems are configured separately under the environment’s **Setup → Delivery**. Choose the system that delivers that environment, then complete its connection setup.

If an environment uses GitHub Actions and its **Deploys** page has no recorded deploys, **Set up delivery** opens the linked repository's setup when its delivery choice is unconfirmed.

An unconfirmed delivery choice is not a working deployment protection rule. Check the environment's setup before relying on deployment reviews.

The environment's **Setup → Delivery** page shows the delivery method and each linked repository's delivery target: its GitHub Environment, or workflow runs when it has none. **No delivery target** means no linked repository declares how it deploys to this environment; set the target on the repository's link.

## Check the other side

Open the environment's **Setup** pages and check both the repository links and cloud connections. The links record where the code deploys, and the connections record what Proofline may read. Finish any missing connection setup. Finished setup does not by itself add an environment assessment to reviews; a review carries one only when Proofline assesses that environment.

[Declare a directory that runs outside every environment](/help/declare-code-outside-environments/).

[Withdraw a directory declaration when code starts deploying](/help/withdraw-outside-directory-declaration/).

## Related guides

-   [Create an environment](/help/create-environment/)
-   [Configure deployment protection](/help/deployment-protection/)
-   [Review repository configuration](/help/repository-configuration/)
