技能标识:github-actions-artifact-budget-audit
Audit GitHub Actions artifact storage usage from JSON exports so bloated artifacts are flagged before they inflate CI cost.
使用此技能检测跨仓库的超大或过期GitHub Actions制品。
单个仓库:
bash
gh api repos/<所有者>/<仓库>/actions/artifacts --paginate \
> artifacts/github-actions-artifacts/<所有者>-<仓库>.json
只要每个文件包含artifacts数组,也支持合并的多仓库负载。
文本报告:
bash
ARTIFACT_GLOB=artifacts/github-actions-artifacts/*.json \
WARN_MB=300 \
CRITICAL_MB=900 \
bash skills/github-actions-artifact-budget-audit/scripts/artifact-budget-audit.sh
用于自动化的JSON输出:
bash
ARTIFACT_GLOB=artifacts/github-actions-artifacts/*.json \
OUTPUT_FORMAT=json \
FAILONCRITICAL=1 \
bash skills/github-actions-artifact-budget-audit/scripts/artifact-budget-audit.sh
过滤到单个仓库和制品系列:
bash
ARTIFACT_GLOB=artifacts/github-actions-artifacts/*.json \
REPO_MATCH=^flowcreatebot/ \
ARTIFACT_MATCH=(test-results|coverage) \
bash skills/github-actions-artifact-budget-audit/scripts/artifact-budget-audit.sh
使用捆绑的测试数据运行:
bash
ARTIFACT_GLOB=skills/github-actions-artifact-budget-audit/fixtures/*.json \
bash skills/github-actions-artifact-budget-audit/scripts/artifact-budget-audit.sh
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 github-actions-artifact-budget-audit-1776201280 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-actions-artifact-budget-audit-1776201280 技能
skillhub install github-actions-artifact-budget-audit-1776201280
文件大小: 6.06 KB | 发布时间: 2026-4-15 12:04