> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# gitlab-ci-unpinned-include

> A GitLab CI include loads another project, a remote URL or a component from a moving branch or version.

## What it flags

A top-level `include:` that loads pipeline configuration other people can change: a `project:` include with no `ref:` (it follows the default branch) or with `ref: main`, `master` or `HEAD`; a `remote:` URL (or a bare `https://` include) without an `integrity:` hash; and a `component:` at `@~latest`, `@main`, `@master`, `@HEAD` or with no version. The included jobs run with this project's CI/CD variables and tokens. [GitLab docs](https://docs.gitlab.com/ci/yaml/includes/)

Not flagged: `local:` and `template:` includes, a `project:` or `ref:` built from a variable such as `$CI_PROJECT_PATH`, a ref that names a tag or commit, a remote URL that contains a full commit SHA, and components on a released version.

```yaml theme={null}
include:
  - project: my-group/ci-templates
    ref: 0123456789abcdef0123456789abcdef01234567
    file: /build.yml
```

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "gitlab-ci-unpinned-include": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.