github-actions-oidc-hardening-audit
Audit GitHub Actions cloud auth workflows for OIDC hardening gaps like missing id-token write permissions, static cloud secrets, and floating auth action refs.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/daniellummis/github-actions-oidc-hardening-auditWhat This Skill Does
The github-actions-oidc-hardening-audit skill is a specialized security tool designed to identify and remediate risky authentication patterns within GitHub Actions workflows. As organizations shift toward OIDC (OpenID Connect) for cloud provider authentication, misconfigurations often leave infrastructure vulnerable to privilege escalation or secret exposure. This skill automates the detection of common OIDC hardening gaps by scanning YAML workflows for insecure practices. It detects usage of major cloud-auth actions like aws-actions/configure-aws-credentials, google-github-actions/auth, and azure/login. Specifically, it flags missing permissions.id-token: write blocks (which are required for OIDC), identifies the presence of static, long-lived cloud secrets, and detects floating action references (e.g., tags like @v1 or @master) that may lead to supply chain vulnerabilities. By scoring findings based on severity, it allows teams to prioritize technical debt and ensure their CI/CD pipelines adhere to zero-trust principles.
Installation
To integrate this skill into your OpenClaw environment, execute the following command via your terminal:
clawhub install openclaw/skills/skills/daniellummis/github-actions-oidc-hardening-audit
Ensure you have the necessary repository permissions to pull from the openclaw/skills source. Once installed, the skill can be invoked directly through your OpenClaw agent workflow using the documented shell scripts provided in the skill directory.
Use Cases
- Pre-deployment Security Auditing: Automatically audit all new PR workflows to ensure OIDC compliance before they merge into production.
- Legacy Migration: Identify which legacy workflows rely on static AWS access keys, enabling a structured migration to OIDC roles.
- Compliance Reporting: Generate JSON reports to track the security posture of your organization's CI/CD infrastructure over time.
- CI Gatekeeping: Configure automated pipelines to fail builds if critical security violations are detected, preventing insecure configurations from ever reaching your repository.
Example Prompts
- "OpenClaw, please run the OIDC hardening audit on all workflow files in the current repository and output the findings as a summary report."
- "Scan the
.github/workflows/directory for any cloud authentication workflows that are currently missing the mandatoryid-token: writepermission." - "Execute a critical audit on our main branch workflows; if any static secrets are detected, provide the file paths and block the build process."
Tips & Limitations
- Ref Allow-listing: Use the
ALLOW_REF_REGEXparameter to whitelist specific action versions if you have validated them for internal use, reducing false positives. - Regex Precision: Be mindful that the
WORKFLOW_FILE_MATCHregex is case-sensitive and must be formatted correctly to prevent skipping essential files. - Limitations: The skill primarily performs static analysis of YAML syntax. It cannot detect runtime environment variables injected via GitHub Secrets that might inadvertently contain static credentials if they are not explicitly named according to standard cloud patterns.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-daniellummis-github-actions-oidc-hardening-audit": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
github-actions-recovery-latency-audit
Measure GitHub Actions failure recovery latency and unresolved incident age by workflow group.
github-actions-cache-hardening-audit
Audit GitHub Actions workflow cache usage for poisoning, keying, and secret-path risks.
render-env-guard
Preflight-check Render service environment variables before deploys; catches missing keys and placeholder/template values that commonly break production rollouts.
github-actions-trigger-health-audit
Audit GitHub Actions run health by trigger event and workflow so flaky or noisy automation sources are easy to prioritize.
github-actions-run-gap-audit
Detect GitHub Actions workflow groups that stopped running on their normal cadence using median run intervals and current inactivity gap.