---
title: "Declare a directory that runs outside every environment | Proofline Help"
description: "A repository may build a test image alongside the service it deploys. Declare the test image’s directory when its code runs in none of the linked environments."
url: https://proofline.sh/help/declare-code-outside-environments/
---

[Help center](/help/)

# Declare a directory that runs outside every environment

A repository may build a test image alongside the service it deploys. Declare the test image’s directory when its code runs in none of the linked environments.

## Add a repository-relative directory

Open the repository’s **Settings → Setup**. Under **Code outside environments**, enter a path such as `tools/test-image` in **New directory** and select **Add**. Use one directory relative to the repository root. Wildcards, absolute paths and parent-directory segments are rejected.

Check that the directory appears under **Directory**. An environment check skips a requirement only when all its citations fall in declared directories. A requirement that also cites deployed code still needs environment evidence.

## Related guides

-   [Link repositories and environments](/help/repository-environments/)
