GitLab check
External GitLab CI includes are not pinned
Trigger condition
The default-branch CI configuration confirms at least one cross-project include:project entry whose ref is not a full 40-character commit SHA (omitted/HEAD, a branch or tag name, or an abbreviated SHA), excluding any same-project include, or at least one include:remote entry (including bare-URL shorthand) that is not confirmed pinned via a full commit SHA in the unambiguous ref position of a recognized GitLab raw-file URL on the audited instance, and not confirmed to declare a well-formed integrity digest at the exact root-level declaration GitLab's own CI Lint result confirms is in effect.
Evidence
States the total number of external includes confirmed unpinned, broken down by type: cross-project include:project entries and remote includes.
Impact
An external include's configuration can change between pipeline runs without any corresponding review in this project. This check describes only what the default branch's CI Lint result and root CI configuration currently show -- it never claims a given include actually ran in any particular pipeline. A confirmed integrity digest is a syntactic declaration only, never a claim that its content has been cryptographically verified; GitLab performs that verification itself, at pipeline-run time, against content this project never fetches.
Recommendation
Pin each unpinned cross-project include:project entry to a full 40-character commit SHA. For each unpinned remote include, add a declared integrity digest or vendor a reviewed copy of the file into this project instead.
Important limitations
Local includes, same-project include:project entries, built-in CI/CD templates, and CI/CD components are outside this check's scope. A remote include's integrity declaration can only be confirmed by inspecting the default-branch root CI configuration file in the audited project itself, matched only against a CI Lint entry confirmed same-project-context and unambiguous in provenance -- a resolved configuration containing any nested same-project file (a local include, or a self-referential project include) makes every same-project-context remote include's provenance ambiguous, since GitLab's CI Lint response cannot distinguish a declaration made by that nested file from one made by the root file itself; such entries are excluded from evaluation and never assumed pinned or unpinned. A nested remote include reached only through a different project's file, a remote include the root file never names, a root configuration hosted in a different project or external URL, or a root URL declared more than once with disagreeing integrity settings, is likewise excluded from evaluation and never assumed pinned or unpinned. A missing or malformed context_project likewise cannot establish that an include:project entry is cross-project, so it is excluded rather than assumed. Any entry this check cannot fully read is logged as incomplete coverage and excluded, never assumed either way; a confirmed unpinned include is never suppressed by a different, ambiguous entry, regardless of ordering.