← 返回 Skills 市场
GitHub Actions Cache Hardening Audit
作者
Daniel Lummis
· GitHub ↗
· v1.0.0
271
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install github-actions-cache-hardening-audit
功能描述
Audit GitHub Actions workflow cache usage for poisoning, keying, and secret-path risks.
使用说明 (SKILL.md)
GitHub Actions Cache Hardening Audit
Use this skill to statically audit .github/workflows/*.yml for risky cache patterns that can cause cache poisoning, stale cache churn, or secret leakage.
What this skill checks
actions/cacheusage on untrusted triggers (pull_request_target)- Cache keys that do not use
hashFiles(...) - Overly broad
restore-keysprefixes - Sensitive paths accidentally included in cache paths (
.aws,.ssh,.npmrc,.git) - Floating cache action refs (
@main,@master)
Inputs
Optional:
WORKFLOW_GLOB(default:.github/workflows/*.y*ml)TOP_N(default:20)OUTPUT_FORMAT(textorjson, default:text)WARN_SCORE(default:3)CRITICAL_SCORE(default:6)WORKFLOW_FILE_MATCH(regex, optional)WORKFLOW_FILE_EXCLUDE(regex, optional)FAIL_ON_CRITICAL(0or1, default:0)
Run
Text report:
WORKFLOW_GLOB='.github/workflows/*.yml' \
bash skills/github-actions-cache-hardening-audit/scripts/cache-hardening-audit.sh
JSON output + fail gate:
WORKFLOW_GLOB='.github/workflows/*.yml' \
OUTPUT_FORMAT=json \
FAIL_ON_CRITICAL=1 \
bash skills/github-actions-cache-hardening-audit/scripts/cache-hardening-audit.sh
Run against bundled fixtures:
WORKFLOW_GLOB='skills/github-actions-cache-hardening-audit/fixtures/*.yml' \
bash skills/github-actions-cache-hardening-audit/scripts/cache-hardening-audit.sh
Output contract
- Exit
0by default (report mode) - Exit
1whenFAIL_ON_CRITICAL=1and at least one critical workflow is detected - Text mode prints a summary and top flagged workflows
- JSON mode emits
summary,flagged_workflows, andcritical_workflows
安全使用建议
This skill appears to be what it claims: a static linter for GitHub Actions cache usage. Before running it, review the script (already bundled) and run it against a restricted glob (default .github/workflows/*.y*ml) or against included fixtures to confirm output. It reads files matched by the glob—so avoid pointing it at broader globs if you don't want unrelated files scanned. There's no network exfiltration or credential access in the code, and it does not require any installation. If you plan to run it in a CI runner with broad filesystem access, be aware it will read files available to that runner; use WORKFLOW_GLOB to limit scope. If you need higher assurance, run the script locally on a copy of the repository or review the bundled code (scripts/cache-hardening-audit.sh) line-by-line; otherwise this skill is coherent and proportionate to its stated purpose.
功能分析
Type: OpenClaw Skill
Name: github-actions-cache-hardening-audit
Version: 1.0.0
The skill is a static analysis tool designed to audit GitHub Actions workflows for cache-related security risks, such as cache poisoning on untrusted triggers or the accidental caching of sensitive directories like .ssh or .aws. The logic is implemented in a transparent Python script (embedded in scripts/cache-hardening-audit.sh) that scans local YAML files for risky patterns. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description align with the included Bash+Python script which scans .github/workflows YAML files for cache-related anti-patterns. Required binaries (bash, python3) are exactly what the script needs. No unrelated credentials, binaries, or install steps are requested.
Instruction Scope
SKILL.md instructs running the bundled script against workflow files (default .github/workflows/*.y*ml). The script only reads files matched by the provided glob, parses them for specific patterns, and emits text or JSON. It does not call external network endpoints, does not access environment variables beyond those declared, and does not exfiltrate data. Note: because it reads repository files, running it in a context with broader filesystem access could expose any files matched by the glob—this is expected for a static repo scanner.
Install Mechanism
There is no install spec; this is instruction-only with a bundled script. That minimizes risk since nothing is downloaded or written to disk beyond the existing skill files.
Credentials
The skill requires no environment variables or credentials. The optional runtime inputs (WORKFLOW_GLOB, OUTPUT_FORMAT, etc.) are reasonable for a static analysis tool and do not request secrets or unrelated access.
Persistence & Privilege
always:false and no behavior that modifies agent/system configuration. The skill does not attempt to persist credentials or change other skills. Autonomous invocation is allowed by default but is not combined with other concerning behaviors.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install github-actions-cache-hardening-audit - 安装完成后,直接呼叫该 Skill 的名称或使用
/github-actions-cache-hardening-audit触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of github-actions-cache-hardening-audit.
- Audits GitHub Actions workflow cache usage for risks like cache poisoning, improper keying, and secret-path exposure.
- Checks for insecure usage patterns, including untrusted triggers, weak cache keys, dangerous restore-keys, and sensitive paths.
- Supports customizable input options for file selection, output format (text or JSON), and risk thresholds.
- Can be configured to fail CI on detection of critical cache risks.
- Provides clear summary reports for flagged and critical workflows.
元数据
常见问题
GitHub Actions Cache Hardening Audit 是什么?
Audit GitHub Actions workflow cache usage for poisoning, keying, and secret-path risks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 271 次。
如何安装 GitHub Actions Cache Hardening Audit?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-actions-cache-hardening-audit」即可一键安装,无需额外配置。
GitHub Actions Cache Hardening Audit 是免费的吗?
是的,GitHub Actions Cache Hardening Audit 完全免费(开源免费),可自由下载、安装和使用。
GitHub Actions Cache Hardening Audit 支持哪些平台?
GitHub Actions Cache Hardening Audit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 GitHub Actions Cache Hardening Audit?
由 Daniel Lummis(@daniellummis)开发并维护,当前版本 v1.0.0。
推荐 Skills