security

Automate container image vulnerability scanning in Tekton pipelines using Trivy.

35|38|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/IBM/bob-demo --skill security-ibm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security
Source: https://github.com/IBM/bob-demo/tree/main/tekton-devops/input-documents/hello-world-tekton/skills/security
Command: npx skills add https://github.com/IBM/bob-demo --skill security-ibm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates vulnerability scanning of container images inside Tekton pipelines, aborting the build when high-severity findings are detected.

Core Features & Use Cases

  • Generates a Tekton Task that runs Trivy against a target container image.
  • Fails the pipeline only on CRITICAL or HIGH vulnerabilities, ensuring actionable alerts.
  • Accepts a parameter named image-name to specify the image under test and integrates easily into CI/CD workflows.
  • Demonstrates usage with aquasec/trivy:0.50.0 and a straightforward security policy.

Quick Start

Scan your container image in a Tekton Task and fail the pipeline on critical or high vulnerabilities.

Frequently Asked Questions about security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan container images for vulnerabilities in a Tekton pipeline?

You can scan container images for vulnerabilities by running Trivy within a Tekton Task. This automates security checks during CI/CD workflows, failing the pipeline build if CRITICAL or HIGH findings are detected.

Can I fail a CI/CD pipeline only on high-severity vulnerabilities?

Yes, you can fail a CI/CD pipeline based on vulnerability severity. This approach uses an exit code policy that aborts the build with exit-code 1 specifically when CRITICAL or HIGH vulnerabilities are found.

What is the best way to automate vulnerability scanning for Kubernetes deployments?

Automating vulnerability scanning for Kubernetes deployments is best achieved by integrating Trivy into Tekton pipelines. This enables automated security checks for microservices and serverless functions before deployment.

Does the Trivy container scan require specific parameters to target an image?

Yes, the Trivy container scan requires a parameter named image-name to specify the target image. It also utilizes the aquasec/trivy:0.50.0 container image to execute the vulnerability scan.

Why does my Tekton pipeline abort when scanning containers with Trivy?

Your Tekton pipeline aborts because the security policy enforces an exit code policy that treats CRITICAL or HIGH findings as failures. This ensures actionable alerts by returning exit-code 1 during container vulnerability scanning.