用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/openshift/hypershift --skill update-konflux-tasks命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | update-konflux-tasks |
| description | Automatically update outdated Konflux Tekton tasks based on enterprise contract verification logs. |
Automatically update outdated Konflux Tekton tasks based on enterprise contract verification logs or by detecting updates directly.
[Extended thinking: This command can either parse enterprise contract logs or use the update_trusted_task_bundles.py script to identify outdated Tekton tasks, uses skopeo to map digests to version tags, checks migration notes for breaking changes, and updates all pipeline YAML files in the .tekton/ directory with the latest versions.]
Konflux Tekton Tasks Update
Update tasks from enterprise contract log:
/update-konflux-tasks ../../hypershift-operator-enterprise-contract-lxgvw-verify.log
Detect and update tasks automatically (no log file):
/update-konflux-tasks
hack/tools/scripts/update_trusted_task_bundles.py --dry-run --json to detect updatesskopeo inspect to map SHA256 digests to proper version tagsskopeo and jq to be installedDetect Outdated Tasks:
hack/tools/scripts/update_trusted_task_bundles.py $(find .tekton -name '*.yaml') --dry-run --json --upgrade-versionsMap Latest Digests to Version Tags:
hack/tools/scripts/find_task_version_by_digest.sh <task-name> <digest> to determine the proper version tag for the latest digestskopeo list-tags and skopeo inspect to find which semantic version tag (e.g., 0.2, 0.3) matches the given digestCheck for Migration Notes:
https://github.com/konflux-ci/build-definitions/blob/main/task/{task-name}/{version}/MIGRATION.mdhttps://github.com/konflux-ci/build-definitions/blob/main/task/{task-name}/{version}/migrations/{version}.sh. If it is available:
Update Pipeline Files:
.tekton/**/*.yamlquay.io/konflux-ci/tekton-catalog/task-{name}:{old-version}@{old-digest} with new versionsProvide Comprehensive Summary:
## 🔄 Konflux Tekton Tasks Update Complete
### Tasks Updated:
- ✅ apply-tags: 0.2@old-digest → 0.2@new-digest (digest update)
- ✅ buildah-remote-oci-ta: 0.4@old-digest → 0.5@new-digest (VERSION BUMP - migration notes checked)
- ✅ init: 0.2@old-digest → 0.2@new-digest (digest update)
[... etc for all tasks]
### Files Updated:
- ✅ .tekton/hypershift-operator-main-push.yaml (8 tasks updated)
- ✅ .tekton/hypershift-operator-main-pull-request.yaml (8 tasks updated)
[... etc for all files]
### Migration Notes:
- buildah-remote-oci-ta v0.4→v0.5: ✅ No action required (bug fix for SBOM generation)
### Summary:
- Total tasks updated: X
- Version bumps: X (with migration notes checked)
- Digest updates: X
- Files updated: X
- Manual steps required: None / [list steps]
pip install pyyaml0.2 in task:0.2@sha256:...)skopeo must be installed (for container image inspection)jq must be installed (for JSON parsing)yq must be installed (for YAML parsing and checking multi-platform builds)pyyaml Python package must be installed when running without a log file (for update_trusted_task_bundles.py)hack/tools/scripts/update_trusted_task_bundles.py --dry-run --json to automatically detect outdated tasks.The command will provide progress updates and automatically update all relevant Tekton pipeline files with the latest task versions.
基于 SOC 职业分类