github-actions-secret-exposure-audit
Audit GitHub Actions workflow files for secret exposure risks like pull_request_target secret usage, secret echo commands, and unpinned action secret passing.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/daniellummis/github-actions-secret-exposure-auditWhat This Skill Does
The github-actions-secret-exposure-audit skill serves as a security-focused static analysis tool tailored specifically for GitHub Actions workflows. Its primary function is to identify common, dangerous patterns in YAML configuration files that could lead to the unintended exposure of secrets, API keys, or sensitive credentials. By scanning workflow definitions, the tool proactively detects risky behaviors such as using ${{ secrets.* }} within pull_request_target event triggers, which is a common vector for secret exfiltration via malicious PRs. Furthermore, it inspects shell commands like echo, printf, and tee to ensure developers aren't accidentally printing masked values to logs, while also flagging secret references passed to unpinned third-party actions—a practice that risks data interception by compromised action versions.
Installation
To integrate this auditing capability into your environment, use the OpenClaw command-line interface. Run the following command:
clawhub install openclaw/skills/skills/daniellummis/github-actions-secret-exposure-audit
Ensure you have the necessary repository permissions if installing from a private source. Once installed, the skill resides in your local skill directory and can be invoked via the scripts provided in the package.
Use Cases
This skill is essential for DevOps engineers and security auditors who need to maintain a secure CI/CD posture. Use it during pre-commit hooks or as part of a CI pipeline audit job to ensure compliance with company security policies. It is particularly valuable during security refactoring sprints, where a massive influx of legacy YAML files needs to be audited for potential leaks. Teams that allow third-party marketplace actions will find it helpful for enforcing pinning policies, ensuring that sensitive environment variables are only passed to trusted, immutable versions of code.
Example Prompts
- "Run a secret exposure audit on all workflow files in the current repository and output the results in JSON format."
- "Scan the workflow directory and fail the pipeline if any critical secret exposure risks are detected."
- "Check for secret usage in pull_request_target workflows using the standard warning score threshold of 4."
Tips & Limitations
To maximize the effectiveness of this audit, ensure that your WORKFLOW_GLOB is configured correctly to cover all relevant paths. While the tool is highly effective at catching structural vulnerabilities, it performs static analysis; it cannot determine runtime behavior or runtime environment mutations. It is recommended to use this alongside dynamic secret management solutions like HashiCorp Vault or GitHub's native environment protection rules. The ALLOW_REF_REGEX feature is your best friend when you have legitimate, internal third-party actions that use custom versioning schemas outside of standard semantic versioning.
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-secret-exposure-audit": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, code-execution
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.