AgentSkillsCN

ubi-scan

扫描仓库,及时发现并追踪Dockerfile中UBI镜像版本的使用情况。

SKILL.md
--- frontmatter
name: ubi-scan
description: Scan repositories for UBI image version usage in Dockerfiles
argument-hint: "[options]"
allowed-tools:
  - Bash(./scripts/ubi-lookup.sh:*)
  - Read

UBI Image Scanner

Scan GitHub organizations for repositories using specific UBI (Universal Base Image) versions in their Dockerfiles.

Arguments: "$ARGUMENTS"

Why This Matters

Red Hat Universal Base Images (UBI) are regularly updated with:

  • Security patches
  • Bug fixes
  • New features

Tracking UBI usage helps ensure containers are built on supported, secure base images.

UBI Versions

VersionStatus
UBI 9Current, recommended
UBI 8Supported
UBI 7End of life, should migrate

Workflow

Run the UBI lookup script with any provided options:

bash
./scripts/ubi-lookup.sh $ARGUMENTS

Options

OptionDescription
--help, -hShow detailed help

Usage Examples

code
/ubi-scan        # Run the scan
/ubi-scan --help # Show help

Output

  • Real-time progress for each repository
  • UBI version usage breakdown
  • Repos using deprecated UBI versions
  • Updates tracking issue in telco-bot repo