Workflow component
This component manages pipeline execution. By default the component skips duplicate merge request pipelines, any pipeline with an explicit skip marker, and merge request pipelines whose titles are documentation/maintenance-only conventional commit titles such as docs:, docs(scope):, chore:, and chore(scope):.
Usage
Example to skip branches
This will skip pipelines executed in the branch develop.
- Create a new pipeline file
include:
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/common@stable
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/workflow@stable
inputs:
name: project
pattern-branch-skip: '/^develop\$/'
Other examples of regex patterns to skip branches:
'/^(dev|main)$/'- skip all branches nameddevormain
Enable CVE tracking in Trivy scans
Set workflow-security-enabled: true to create tracking issues and expiring
ignores for new CVE findings in Trivy scans. The default is false.
workflow-security-ignore-expiration defaults to 2d; use a positive number
of days (d) or weeks (w). Set CI_WORKFLOW_SECURITY_ENABLED to true or
false to override the component setting for a pipeline. See the
Trivy component for
token, label, branch, and scan behavior.
Inputs
| Name | Description | Default | Type |
| --- | --- | --- | --- |
| pattern-branch-interruptible | Regex pattern to mark the pipeline as interruptible based on the branch name. Use https://github.com/google/re2/wiki/Syntax | /^(feat|fix|hotfix)\// | string |
| pattern-branch-skip | Regex pattern to skip the pipeline based on the branch name. Use https://github.com/google/re2/wiki/Syntax | string | |
| pattern-commit-message-skip | Regex pattern to skip the pipeline based on the commit message. | /\[.*skip.*\]/ | string |
| workflow-security-enabled | Enable tracked, expiring CVE ignores in Trivy branch scans. | false | boolean |
| workflow-security-ignore-expiration | Lifetime of generated CVE ignores, as days or weeks. | 2d | string |