Skip to content
Back to skills

Gitlab Ci Knowledge Patch

ASecurity

GitLab CI/CD

  • 25 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 5, 2026
developmentpythonshellbashsqlnodeexpressdockerkubernetesgitapi

Works with

  • terminal
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill gitlab-ci-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gitlab Ci Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gitlab Ci Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-gitlab-ci-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-gitlab-ci-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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 pipelines, runners, security scans, secrets,
job tokens, Duo agents and flows, or planning GitLab upgrades and administration.
Use the topic references for complete configuration details and deployment scope.

## Reference index

| Reference | Topics |
| --- | --- |
| [Upgrade planning](references/upgrade-planning.md) | Upgrade stops, security patches, databases, package and Helm migrations, registry, Geo, restores, project lifecycle, identity, Slack, work items, search, Markdown |
| [Pipeline configuration](references/pipeline-configuration.md) | Array inputs, variable limits, scan pipeline sources, policy schedules, merge trains, merge API, rebase, title templates, workspace namespaces |
| [Runner, catalog, and analytics](references/runner-catalog-and-analytics.md) | Runner configuration, failure reasons, shell and clone behavior, Kubernetes, hosted runners, component usage, OTLP, CI/CD analytics, credits, event collection |
| [Security, secrets, and job tokens](references/security-secrets-and-job-tokens.md) | Token permissions and pushes, Secrets Manager, protected environments, webhook signatures, license policies, dependency scanning and remediation, vulnerability reports, Jira, security flows |
| [Duo agents and flows](references/duo-agents-and-flows.md) | CLI, triggers, pipeline repair, review instructions and exclusions, AI Catalog, approvals, network policy, audit reports, OIDC, MCP, Chat, credits, model infrastructure |

## Upgrade requirements and changed behavior

### Upgrade paths and prerequisites

Include 19.2, 19.5, 19.8, and 19.11 in the upgrade path when crossing those versions.
Upgrade affected Self-Managed CE and EE installations to at least 19.2.1, 19.1.3,
or 19.0.5 on the corresponding release series for the security fixes.
SaaS is already patched, and Dedicated requires no customer action.

PostgreSQL 17 is the minimum supported version 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.
Linux package installations on 19.0 also support external Redis 7.0 and 7.1.
Redis 7.0 has reached upstream end of life, though some providers maintain
versions below 7.2.

18.11 is the last release with Linux packages for Ubuntu 20.04, openSUSE Leap
15.6, and SUSE Linux Enterprise Server 12.5 and 15.6. Before upgrading to 19.0,
move Ubuntu 20.04 installations to Ubuntu 22.04 or another supported platform;
migrate to Docker if you need to stay on SUSE.

### Bundled services and Helm

19.0 removes bundled Mattermost from the Linux package. If you use the bundled
service, migrate it to a standalone deployment before upgrading. Remove or comment out all
`mattermost[...]` settings in `/etc/gitlab/gitlab.rb` before installing the
19.0 Linux package; `gitlab-ctl check-config --version 19.0.x` misses those keys.
Stale Mattermost secrets in the 18.11.7 node cache can still block the upgrade.
First upgrade to 18.11.9 or later in the 18.11 series, or apply the linked manual
workaround in the upgrade reference before upgrading to 19.0.

19.0 removes bundled PostgreSQL, Redis, and MinIO charts from the Helm chart
and Operator. Migrate to external services before upgrading if you use them.
The 19.0 Helm deployment defaults to Gateway API with Envoy Gateway. If you need
more migration time, explicitly re-enable the bundled NGINX Ingress controller,
which is scheduled for removal in 20.0.

### Restore exclusions and merge API requirements

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 your workflow
depends on clearing them.

In 19.2, new groups enable `require_sha_for_merge` by default: send a valid source
commit `sha` to the merge endpoint for these groups. Existing groups retain their
settings; new groups inherit values locked by an ancestor group or the instance.
Administrators can disable the default for all new groups through the application
settings API with `require_sha_for_merge` set to `false` and
`lock_require_sha_for_merge` set to `true`.

### Runner artifact setting and failure reasons

In Runner 19.6, replace the deprecated `FF_USE_DIRECT_DOWNLOAD` flag 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 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.
See the Runner reference for the source-fetch change's attribution.

### Runner shell and Kubernetes behavior

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 `[[ ... ]]`.
With `FF_KUBERNETES_HONOR_ENTRYPOINT=true`, the Kubernetes executor honors
commands configured for services. Pause pods support labels and annotations
and use the same node affinity and scheduler as job pods.
Enable experimental `preemptive_mode` to request jobs only when capacity is
available. See the Runner reference for these changes' attribution.

## Pipeline inputs, limits, and scheduling

Declare an input with `type: array` and `options` for a multi-select dropdown
when running a pipeline from the UI; selections are passed as one array.

```yaml
spec:
  inputs:
    targets:
      type: array
      options: [staging, production]
      default: [staging]
```

Use `[]` inside an input expression to interpolate an array element:
`$[[ inputs.targets[0] ]]` resolves to the first value of `targets`.

In 19.6, administrators can cap pipeline variable counts and individual value
sizes. 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.

Define schedules in a security policy project to run separate pipelines 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 scans, secrets, and job tokens

### Choose the security scan pipeline source

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 it 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.

### Resolve dependencies and request secrets

On Ultimate, the v2 Dependency Scanning template provides default automatic
dependency resolution 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.

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.

### Push to another project with a job token

A job can push with `CI_JOB_TOKEN` when the target opts in to pushes from
allowlisted projects, the source project is allowlisted, and the user starting
the pipeline has at least the Developer role in the target. An administrator
must enable `allow_push_to_allowlisted_projects`, disabled by default in 19.0.

## Duo flows and review configuration

Install Duo CLI through `glab` or as a standalone tool for terminal chat or
headless CI/CD use. It supports MCP connections, tool approvals, skills, and
`AGENTS.md` customization. Self-Managed and Dedicated administrators can turn it
on or off.

Define reusable multi-agent workflows in YAML with checkpoints for human approval
or feedback. Create flows in a project or the AI Catalog, set visibility, and
attach event triggers to run them in CI/CD with service accounts and composite
identity.

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 the run there or under
**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
the child pipeline hierarchy. Customize it with `AGENTS.md`.

With Duo Enterprise, select a group template project and put shared review
instructions in `.gitlab/duo/mr-review-instructions.yaml`. Code Review Flow and
Duo Code Review combine them with project instructions throughout the group
and its subgroups. Self-Managed or Dedicated administrators can select a template
project for instance-wide instructions in the same file; both reviewers combine
these with applicable group and project instructions.

The automatic review exclusions beta uses
`.gitlab/duo/mr-review-automated-rules.yaml` at project or group scope to exclude
authors, source branches, or target branches using globs such as `dependabot/*`
or `*-bot`. Manual review requests still work, and
`duo_code_review_automated_rules` is enabled by default.

The MCP server can be enabled or disabled at instance or group scope independently
of Agent Platform. External MCP clients can connect when the server is enabled
even if Agent Platform is off. The server is available on Free on GitLab.com,
Self-Managed, and Dedicated.

Files in this skill

  • SKILL.md8.3 KB
  • coverage.json726 B
  • references/duo-agents-and-flows.md2.5 KB
  • references/pipeline-configuration.md2 KB
  • references/runner-catalog-and-analytics.md1.1 KB
  • references/security-secrets-and-job-tokens.md2.1 KB
  • references/upgrade-planning.md4.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.