Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Gitlab Ci Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-gitlab-ci-knowledge-patch)
---
name: gitlab-ci-knowledge-patch
description: GitLab CI/CD
version: "19.2"
license: MIT
metadata:
author: Nevaberry
---
# GitLab CI/CD Knowledge Patch
Load this skill when configuring GitLab pipelines and runners, managing security
and Duo automation, or upgrading GitLab deployments. Use the topic references
for complete guidance, availability conditions, configuration examples, and links.
## Reference index
| Reference | Topics |
| --- | --- |
| [Pipeline configuration](references/pipeline-configuration.md) | Inputs, variables, scanning pipeline defaults, job token pushes, merge pipelines, Runner configuration and failures, Kubernetes, workspace namespaces |
| [Security and governance](references/security-and-governance.md) | Secrets, scoped credentials, dependency scanning and remediation, vulnerabilities, policies, identity, webhook signing, agent controls and audits |
| [Operations and automation](references/operations-and-automation.md) | Analytics, hosted runners, merge requests and reviews, CLI and flows, AI Catalog, MCP, billing, project lifecycle, integrations, search and Markdown |
| [Platform upgrades](references/platform-upgrades.md) | Security fixes, upgrade paths, databases, package platforms, bundled services, Helm, registry storage, Geo, restores, Duo Self-Hosted endpoints |
## Breaking changes and deprecations
### Platform upgrade prerequisites
- PostgreSQL 17 is the minimum for Self-Managed 19.0. Upgrade packaged
PostgreSQL 16 before installing the 19.0 application package.
- 19.0 removes Redis 6 support. Migrate external Redis 6 to Redis 7.2 or Valkey
7.2 before upgrading. Linux package installations also support external Redis
7.0 and 7.1; Redis 7.0 has reached upstream end of life.
- 18.11 is the last Linux package release for Ubuntu 20.04. Move to Ubuntu
22.04 or another supported platform before upgrading to 19.0.
- 18.11 is the last package release for openSUSE Leap 15.6 and SUSE Linux
Enterprise Server 12.5 and 15.6. Migrate to Docker to stay on SUSE for 19.0.
- 19.0 removes bundled Mattermost. Migrate it to a standalone deployment and
remove or comment out all `mattermost[...]` settings in `/etc/gitlab/gitlab.rb`
before installing the Linux package. `gitlab-ctl check-config --version 19.0.x`
misses these keys. Stale 18.11.7 node-cache secrets can still block the upgrade;
first upgrade to 18.11.9 or later in that series, or use the manual workaround.
- 19.0 removes bundled Spamcheck from the Linux package and Helm chart.
Deploy its standalone Docker service to keep using it; there is no data migration.
- 19.0 removes bundled PostgreSQL, Redis, and MinIO charts from Helm and the
Operator. Migrate bundled data services to external services before upgrading.
- The 19.0 Helm deployment defaults to Gateway API with Envoy Gateway.
Explicitly re-enable bundled NGINX Ingress if more migration time is needed;
it is scheduled for removal in 20.0.
Include 19.2, 19.5, 19.8, and 19.11 in upgrade paths that cross those versions.
See [platform upgrades](references/platform-upgrades.md) for patches, Helm chart
requirements, registry compatibility, Geo repairs, and endpoint recovery.
### Repository restore behavior
In 19.4 and later, restores preserve repositories excluded by
`SKIP_REPOSITORIES_PATHS`, including exclusions in `backup_information.yml`
from older backups. A full restore with both `REPOSITORIES_PATHS` and
`SKIP_REPOSITORIES_PATHS` unset still deletes repositories absent from the backup.
Use a full restore or remove excluded repositories beforehand if clearing them
is part of the workflow.
### Merge API defaults for new groups
In 19.2, new groups enable `require_sha_for_merge` by default: send a valid source
commit `sha` to their merge endpoint. Existing groups retain their settings.
New groups inherit a value locked by an ancestor or the instance. Administrators
can disable the default for all new groups through the application settings API
by setting `require_sha_for_merge` to `false` and `lock_require_sha_for_merge` to `true`.
### Direct artifact downloads
In Runner 19.6, replace deprecated `FF_USE_DIRECT_DOWNLOAD` with `direct_download`
in `[runners.artifact]`. Add it to the runner's existing entry in `config.toml`:
```toml
[[runners]]
[runners.artifact]
direct_download = true
```
### Runner failure reasons and shell behavior
Runner 19.2 stops classifying secret resolution failures as
`runner_system_failure`, affecting retry rules keyed to that reason.
Runner also classifies runner-controlled source-fetch failures separately from
user script failures; review retry rules that depend on the failure reason.
Jobs with `FF_CONCRETE` enabled use the runner's configured shell. If
`shell = "sh"`, use portable shell syntax or configure Bash for jobs using
Bash-only features such as arrays or `[[ ... ]]`.
### Security scanning pipeline defaults
Stable security scanning templates default to branch pipelines. Set
`AST_ENABLE_MR_PIPELINES` to `"true"` in `.gitlab-ci.yml` to use merge request
pipelines when a merge request is open. Latest templates default to merge request
pipelines for open merge requests; set the variable to `"false"` to restore
branch pipelines.
```yaml
variables:
AST_ENABLE_MR_PIPELINES: "true"
```
`API-Discovery.gitlab-ci.yml` defaults to branch pipelines in 18.0 and is outside
the `AST_ENABLE_MR_PIPELINES` rollout.
### Pipeline variable limits
In 19.6, administrators can cap the variable count and each value's size.
SaaS limits are 1,200 variables per pipeline, 128 KiB per ordinary value, and
1 MiB per file-type value. Self-Managed and Dedicated disable these limits by default.
See [pipeline configuration](references/pipeline-configuration.md) for Runner
settings, failure classifications, pipeline defaults, and merge controls.
## Pipeline inputs, credentials, and scheduling
### Array inputs
Use `type: array` with `options` for a multi-select dropdown in the pipeline UI.
Selected values are passed as one array:
```yaml
spec:
inputs:
targets:
type: array
options: [staging, production]
default: [staging]
```
Use `[]` inside input expressions to access individual elements;
`$[[ inputs.targets[0] ]]` resolves to the first `targets` value.
### Cross-project job token pushes
A job can push to another project's repository with `CI_JOB_TOKEN` when the
target opts in to pushes from allowlisted projects, the source is allowlisted,
and the user starting the pipeline has at least Developer access in the target.
An administrator must enable `allow_push_to_allowlisted_projects`, which is
disabled by default in 19.0.
### Secrets and scoped tokens
Secrets Manager is in open beta for Premium and Ultimate on GitLab.com and
Self-Managed. When enabled, project and group Owners can manage CI/CD secrets at
their respective scope. A job must explicitly request a secret to access it.
Fine-grained job token permissions are in beta on SaaS and Self-Managed across
all tiers. Grant only the resource permissions the pipeline needs. Fine-grained
personal access tokens are generally available across all tiers, covering all
REST endpoints and commonly used GraphQL types and mutations.
### Scheduling and merge train limits
Define schedules in a security policy project to run a separate pipeline in each
project in scope independently of commits. Configure cadence, time zone, and
target branch centrally, and spread runs across a time window if needed.
On Premium and Ultimate for Self-Managed and Dedicated, configure merge train
parallel pipeline limits per project or instance-wide. A limit of `1` runs merge
requests one at a time against the clean target branch.
## Security scanning and remediation
### Transitive dependency coverage
On Ultimate, the v2 Dependency Scanning template automatically resolves
dependencies for Maven, Gradle, and Python when a lockfile or dependency graph
is absent. The analyzer can generate `gradle.graph.txt` for Gradle. If resolution
fails, manifest scanning covers only direct dependencies. Supply a lockfile or
graph export when transitive coverage is needed and automatic resolution is unavailable.
### Security profiles and remediation flows
The Ultimate **Dependency Scanning - Default** profile configures scans without
changing project CI/CD YAML. Commits pushed to a branch with an open merge request
trigger scans reporting newly introduced vulnerabilities. Pushes and merges to
the default branch trigger scans with full results.
Dependency scanning auto-remediation is in beta on GitLab.com, Self-Managed, and
Dedicated. Optional Agentic Breaking Change Resolution consumes credits, adds
major version bumps, and commits fixes to the same remediation merge request
and reruns the pipeline when an upgrade breaks it.
See [security and governance](references/security-and-governance.md) for the
Ruby remediation experiment's limits, vulnerability tracking, report filtering,
security reviews, token scopes, authentication, and agent policies.
## Runner operations and pipeline assistance
Set `allow_http2 = true` to enable HTTP/2 for Runner API requests; it is disabled
by default. Runner 19.0 makes the prepare stage timeout configurable and adds
an OTLP export client with a `job_execution` span for job tracing.
Kubernetes pause pods support labels and annotations and use the same node
affinity and scheduler as job pods. Experimental `preemptive_mode` requests jobs
only when capacity is available. With `FF_KUBERNETES_HONOR_ENTRYPOINT=true`,
the Kubernetes executor honors commands configured for services.
Install Duo CLI through `glab` or standalone for interactive terminal chat or
headless CI/CD use. It supports MCP connections, tool approvals, skills, and
`AGENTS.md` customization; administrators can turn it on or off on Self-Managed
and Dedicated.
In web Agentic Chat, request a code change, merge request review, or pipeline
repair to start Developer Flow, Code Review Flow, or Fix CI/CD Pipeline Flow,
respectively. Approve the handoff in chat and track it there or in **AI** > **Sessions**.
Fix CI/CD Pipeline Flow posts code suggestions when affected files already appear
in the merge request diff and can diagnose failures across child pipelines.
Put project-specific instructions in `AGENTS.md`. The CI Expert Agent is generally
available; enable Orbit and its Knowledge Graph, both in beta, for graph context.
## Reviews and automation controls
Code Review Flow and Duo Code Review combine applicable instance, group, and
project instructions from `.gitlab/duo/mr-review-instructions.yaml`. With Duo
Enterprise, group shared instructions use a template project in the group. Instance instructions
use an administrator-selected template project on Self-Managed or Dedicated.
Exclude automatic reviews by author, source branch, or target branch in a project
or group's `.gitlab/duo/mr-review-automated-rules.yaml`; globs include `dependabot/*`
and `*-bot`. Manual requests still work. This beta's
`duo_code_review_automated_rules` flag is enabled by default.
The MCP server can be enabled at the instance or group independently of Agent
Platform. External clients can connect when the server is enabled even if Agent
Platform is off. It is available on Free for GitLab.com, Self-Managed, and Dedicated.
See [operations and automation](references/operations-and-automation.md) for
flow triggers, custom agents, reviews, MCP discussions, usage billing, hosted
runners, project lifecycle, and integration details.