konflux-ci/clair-in-ci-db/ci-pipeline-debugging

Claude Code and agent skill by konflux-ci/clair-in-ci-db

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when a Tekton build pipeline fails, when you need to understand task ordering or resource requirements, or when debugging security scan failures. Covers PR and push pipeline differences, the fetch-db-data step, and all security scan tasks.

Install

npx vskill@latest install konflux-ci/clair-in-ci-db/ci-pipeline-debugging

SKILL.md

CI Pipeline Debugging

Overview

This repo has two Tekton PipelineRun definitions in .tekton/: one for pull requests and one for pushes to main. Both are hermetic builds using trusted artifacts (OCI TA) with Cachi2 prefetching. The most critical and failure-prone step is fetch-db-data, which downloads the Clair vulnerability database and needs 16-32 GiB of memory.

When to Use

  • A Tekton pipeline task failed and you need to understand what it does
  • You need to understand the task execution order
  • The fetch-db-data step is failing (OOM, timeout, network)
  • A security scan is blocking the pipeline
  • You need to understand PR vs push pipeline differences

Task Execution Order

init
└─ clone-repository
└─ fetch-db-data (non-hermetic, downloads matcher.db)
└─ prefetch-dependencies (RPMs + generic artifacts via Cachi2)
└─ build-container (buildah, hermetic)
└─ build-image-index
├─ clair-scan
├─ clamav-scan
├─ sast-snyk-check
├─ sast-shell-check
├─ sast-unicode-check
├─ coverity-availability-check → sast-coverity-check
├─ ecosystem-cert-preflight-checks
├─ deprecated-base-image-check
├─ rpms-signature-scan
├─ apply-tags
├─ push-dockerfile
└─ build-source-image (push only)
finally:
└─ show-sbom

PR vs Push Pipeline Differences

AspectPR PipelinePush Pipeline
File.tekton/clair-in-ci-db-hermetic-pull-request.yaml.tekton/clair-in-ci-db-hermetic-push.yaml
Triggerevent == "pull_request" && target_branch == "main"event == "push" && target_branch == "main"
Image tagon-pr-{{revision}}{{revision}}
Image expiry5 daysNone (permanent)
Cancel in-progressYesNo
Max kept runs33
Source image buildNoYes (when enabled)
Pipeline timeout2 hours2 hours

fetch-db-data Step (Most Common Failure Point)

This step downloads the latest Clair vulnerability database. It is the most resource-intensive and failure-prone task.

PropertyValue
Taskrun-script-oci-ta
Runner imagequay.io/projectquay/clair-action:v0.0.15
CommandDB_PATH=matcher.db /bin/clair-action --level info update
HermeticNo (needs network access to download DB)
CPU request/limit2 / 4 cores
Memory request/limit16 GiB / 32 GiB
Timeout2 hours

The output artifact (SCRIPT_ARTIFACT) is passed to prefetch-dependencies, which means the matcher.db file is included in the source artifact chain and eventually available during the build-container step where the Dockerfile COPY matcher.db /tmp/matcher.db picks it up.

Resource Requirements

Most tasks request 10 GiB memory. Key allocations:

TaskMemory (request/limit)Notes
fetch-db-data16 GiB / 32 GiBDatabase download + processing
build-container10 GiB / 10 GiBbuildah image build
prefetch-dependencies10 GiB / 10 GiBCachi2 RPM + generic artifact download
clair-scan10 GiB / 10 GiBVulnerability scanning of built image
clamav-scan10 GiB / 10 GiBAntivirus scan

Security Scan Tasks

All scans run in parallel after build-image-index and can be skipped with skip-checks: "true":

ScanTask BundleWhat It Checks
Clairtask-clair-scan:0.3CVE vulnerabilities in container image
ClamAVtask-clamav-scan:0.3Malware/virus scan
Snyk SASTtask-sast-snyk-check-oci-ta:0.4Static analysis security testing
ShellChecktask-sast-shell-check-oci-ta:0.1Shell script security and quality
Unicodetask-sast-unicode-check-oci-ta:0.4Homoglyph/trojan-source attacks
Coveritytask-sast-coverity-check-oci-ta:0.3Deep static analysis (if available)
RPM signaturestask-rpms-signature-scan:0.2Verifies RPM package signatures
Preflighttask-ecosystem-cert-preflight-checks:0.2Red Hat certification checks
Deprecated imagetask-deprecated-image-check:0.5Base image deprecation warnings

Common Failures

ProblemLikely CauseFix
fetch-db-data OOM killedDatabase processing exceeds memoryCheck if clair-action version needs more memory; may need to increase limits
fetch-db-data timeoutNetwork slow or database very largeRetry; check clair-action upstream for issues
prefetch-dependencies failsLock files out of sync with rpms.in.yamlRegenerate rpms.lock.yaml and artifacts.lock.yaml
build-container failsDockerfile error or missing prefetched depsCheck Dockerfile syntax; verify all deps are in lock files
clair-scan failsHigh/critical CVEs found in built imageReview CVE report; update base image or add exceptions
rpms-signature-scan failsUnsigned or incorrectly signed RPMVerify RPM source and GPG key in artifacts.lock.yaml
Pipeline stuck at coverityCoverity not available in tenantExpected — coverity-availability-check gates it

Trusted Artifacts (OCI TA)

This pipeline uses OCI-based trusted artifacts instead of PVCs for sharing data between tasks:

  • Source code is stored as OCI artifacts in the output image registry
  • SOURCE_ARTIFACT results chain through: clone → fetch-db-data → prefetch → build
  • CACHI2_ARTIFACT carries prefetched dependencies from prefetch → build
  • Artifacts expire based on ociArtifactExpiresAfter (PR: 5 days, push: never)

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/konflux-ci/clair-in-ci-db/ci-pipeline-debugging/badge)](https://verified-skill.com/skills/konflux-ci/clair-in-ci-db/ci-pipeline-debugging)

Something wrong with this skill or its page? Tell us.