OpenClaw Action
Overview
Set up CI security scanning for agent workspaces and skill repositories. Use this when a project needs pull request checks for exposed secrets, prompt injection markers, suspicious shell usage, or data exfiltration patterns in agent files.
What to Scan
skills/**, .claude/**, .codex/**, .openclaw/**, .agents/**, and other agent workspace folders.
- Scripts, hooks, install files, and generated instructions bundled with skills.
- Workflow files that grant network, token, or write permissions.
GitHub Actions Pattern
name: Agent Security Scan
on:
pull_request:
paths:
- 'skills/**'
- '.claude/**'
- '.codex/**'
- '.openclaw/**'
push:
branches: [main]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Scan agent workspace
run: python scripts/scan-agent-workspace.py .
Findings to Flag
- API keys, private keys, tokens, passwords, and wallet material.
- Instructions that try to bypass higher-priority rules or reveal secrets.
- Shell snippets that download and execute remote code without verification.
- Unexpected network calls, webhooks, or upload commands.
- Broad file deletion, credential harvesting, or persistence mechanisms.
Operating Principles
The scan should detect and annotate risks without modifying repository files. Fail CI for high-confidence critical findings and emit a readable summary for lower-confidence warnings.
Source Notes
Adapted from the SkillsMP openclaw-action skill, selected because it is a highly starred security automation skill focused on agent workspace supply-chain risk.
1---2name: openclaw-action3title: "OpenClaw Action"4tags: ["github-actions", "agent-security", "secret-scanning", "prompt-injection", "ci"]5category: "Skills"6subcategory: "Security"7source: "https://skillsmp.com/skills/openclaw-skills-skills-atlaspa-openclaw-action-skill-md"8source_author: "openclaw"9source_repository: "openclaw/skills"10source_stars: 409411source_updated: "2026-02-13"12metadata:13 source: https://skillmd.com/skills/michaelschecht/openclaw-action14---1516# OpenClaw Action1718## Overview19Set up CI security scanning for agent workspaces and skill repositories. Use this when a project needs pull request checks for exposed secrets, prompt injection markers, suspicious shell usage, or data exfiltration patterns in agent files.2021## What to Scan22- `skills/**`, `.claude/**`, `.codex/**`, `.openclaw/**`, `.agents/**`, and other agent workspace folders.23- Scripts, hooks, install files, and generated instructions bundled with skills.24- Workflow files that grant network, token, or write permissions.2526## GitHub Actions Pattern27```yaml28name: Agent Security Scan29on:30 pull_request:31 paths:32 - 'skills/**'33 - '.claude/**'34 - '.codex/**'35 - '.openclaw/**'36 push:37 branches: [main]3839jobs:40 scan:41 runs-on: ubuntu-latest42 steps:43 - uses: actions/checkout@v444 - name: Scan agent workspace45 run: python scripts/scan-agent-workspace.py .46```4748## Findings to Flag49- API keys, private keys, tokens, passwords, and wallet material.50- Instructions that try to bypass higher-priority rules or reveal secrets.51- Shell snippets that download and execute remote code without verification.52- Unexpected network calls, webhooks, or upload commands.53- Broad file deletion, credential harvesting, or persistence mechanisms.5455## Operating Principles56The scan should detect and annotate risks without modifying repository files. Fail CI for high-confidence critical findings and emit a readable summary for lower-confidence warnings.5758## Source Notes59Adapted from the SkillsMP `openclaw-action` skill, selected because it is a highly starred security automation skill focused on agent workspace supply-chain risk.