Our review
Generates a Tekton task that uses Trivy to scan a container image for critical and high vulnerabilities and fails the pipeline if any are found.
Strengths
- Automates vulnerability scanning in CI/CD pipelines.
- Leverages Trivy, a popular open-source scanner.
- Easy to plug into existing Tekton pipelines.
- Fail-fast approach for critical and high severity issues.
Limitations
- Only covers critical and high severities.
- Requires a Tekton environment to run.
- Assumes the image tag uses a short Git commit.
Use this skill when you have a Tekton-based CI/CD pipeline and want to enforce security scanning before deployment.
Do not use it if your pipeline uses a different CI/CD system (e.g., Jenkins, GitHub Actions) or if you need more granular severity control.
Security analysis
SafeThe skill merely instructs to generate a YAML file for a Tekton task using Trivy; it does not execute any commands, manipulate files, or interact with the system. There are no destructive or exfiltrating actions.
No concerns found
Examples
Create a Tekton task that uses Trivy to scan the container image 'my-app:1.0.0' for critical and high vulnerabilities and fail the pipeline if any are found.I have a Tekton pipeline that builds a container image. Generate a Tekton task to scan that image with Trivy and abort the pipeline on critical or high vulnerabilities. The image parameter should be passed from the previous task.name: security description: Generate Tekton Task that uses Trivy to scan generated container for vulnerabilities. metadata: version: "0.1" author: "Alex Soto" standard: "agentskills.io"
Vulnerabilities Scan
Generate a Tekton task that uses Trivy to scan a container image and abort the pipeline in case of critical or high vulnerabilities.
Instructions for Bob
Step 1: Generate a Tekton Task using Trivy
The task should receive as parameter the container image name. The task should only fail if the container image contains CRITICAL or HIGH vulnerabilities.
- Use the
aquasec/trivy:0.50.0container to run thetrivycommand. - The
exit-codeshould be 1 when a vulnerability is found.
The following snippet shows an example:
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: trivy-scan
spec:
params:
- name: image-name
type: string
steps:
- name: scan
image: aquasec/trivy:0.50.0
script: |
trivy image --severity CRITICAL,HIGH \
--exit-code 1 \
$(params.image-name):$(git rev-parse --short HEAD)
Critical
- Use only trivy tool for vulnerabilities
Security Audit Scanner
Security
Analyzes code to detect OWASP Top 10 vulnerabilities.
OWASP Security Checklist
Security
Generates application security checklists based on the OWASP Top 10.
Threat Model Generator
Security
Generates threat model documents with STRIDE analysis.