Files
gitlab-foss/doc/user/gitlab_duo/context_exclusion.md
2025-07-11 15:12:13 +00:00

1.3 KiB

stage, group, info, title
stage group info title
AI-powered Code Creation To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments Control GitLab Duo context exclusion

Exclude context from GitLab Duo

{{< history >}}

{{< /history >}}

You can control which project content is included as context for GitLab Duo. Use this to protect sensitive information such as password files and configuration files.

Manage GitLab Duo context exclusions

  1. On the left sidebar, select Search or go to and find your project.
  2. Select Settings > General.
  3. Expand Visibility, project features, permissions.
  4. Under GitLab Duo, in the GitLab Duo Content Exclusions section, select Manage exclusions.
  5. Specify which project files and directories are excluded from GitLab Duo context, and select Save exclusions.
  6. Optional. To delete an existing exclusion, select Delete ({{< icon name="remove" >}}) for the appropriate exclusion.
  7. Select Save changes.