返回顶部
g

github-actions-oidc-hardening-auditGitHub Actions OIDC审计

Audit GitHub Actions cloud auth workflows for OIDC hardening gaps like missing id-token write permissions, static cloud secrets, and floating auth action refs.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
247
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

github-actions-oidc-hardening-audit

GitHub Actions OIDC 加固审计

使用此技能可在工作流 YAML 中的风险云认证模式演变为身份或密钥泄露事件之前将其捕获。

此技能的功能

  • - 扫描工作流 YAML 文件(默认路径 .github/workflows/*.yml)
  • 检测 AWS/GCP/Azure 认证操作的使用情况:
- aws-actions/configure-aws-credentials - google-github-actions/auth - azure/login
  • - 标记使用了云认证操作但缺少 permissions.id-token: write 的工作流
  • 标记未指定 role-to-assume 的 AWS 认证使用
  • 标记可能存在的静态云凭证使用(aws-access-key-id、aws-secret-access-key、云凭证密钥)
  • 标记未加入允许列表的浮动认证操作引用(@main、@master、@v1)
  • 支持文本/JSON 输出及 CI 失败门控

输入参数

可选参数:
  • - WORKFLOWGLOB(默认值:.github/workflows/.yml)
  • TOPN(默认值:20)
  • OUTPUTFORMAT(text 或 json,默认值:text)
  • WARNSCORE(默认值:3)
  • CRITICALSCORE(默认值:7)
  • WORKFLOWFILEMATCH / WORKFLOWFILEEXCLUDE(正则表达式,可选)
  • ALLOWREFREGEX(正则表达式,可选)— 允许列表中的操作引用
  • FAILON_CRITICAL(0 或 1,默认值:0)

运行

文本报告:

bash
WORKFLOW_GLOB=.github/workflows/*.yml \
WARN_SCORE=3 \
CRITICAL_SCORE=7 \
bash skills/github-actions-oidc-hardening-audit/scripts/oidc-hardening-audit.sh

JSON 输出 + 失败门控:

bash
WORKFLOW_GLOB=.github/workflows/.yml \
OUTPUT_FORMAT=json \
FAILONCRITICAL=1 \
bash skills/github-actions-oidc-hardening-audit/scripts/oidc-hardening-audit.sh

针对捆绑测试用例运行:

bash
WORKFLOW_GLOB=skills/github-actions-oidc-hardening-audit/fixtures/.yml \
bash skills/github-actions-oidc-hardening-audit/scripts/oidc-hardening-audit.sh

输出约定

  • - 报告模式下退出码为 0(默认)
  • 当 FAILONCRITICAL=1 且存在一个或多个关键工作流时退出码为 1
  • 文本模式打印摘要及风险最高的工作流
  • JSON 模式打印摘要、标记的工作流及关键工作流

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-actions-oidc-hardening-audit-1776192395 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-actions-oidc-hardening-audit-1776192395 技能

通过命令行安装

skillhub install github-actions-oidc-hardening-audit-1776192395

下载

⬇ 下载 github-actions-oidc-hardening-audit v1.0.0(免费)

文件大小: 6.3 KB | 发布时间: 2026-4-15 13:43

v1.0.0 最新 2026-4-15 13:43
Initial release — GitHub Actions OIDC Hardening Audit skill:

- Audits GitHub Actions workflows for OIDC authentication misconfigurations and risky patterns.
- Flags missing `id-token: write` permissions, static cloud credential usage, weak action refs, and improper AWS role configuration.
- Supports both text and JSON output, top-N reporting, and CI fail-gate.
- Highly configurable via input environment variables and regex allow-lists.
- Designed for security teams and DevOps to preemptively catch identity and secret exposure risks.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部