-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (41 loc) · 1.41 KB
/
Copy pathvalidate-content.yml
File metadata and controls
43 lines (41 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Validate content
on:
pull_request:
paths:
- "content/**"
- "scripts/validate-content.mjs"
- "scripts/audit-skills.mjs"
- "scripts/build-skills-sh-mirror.mjs"
- "scripts/build-agent-plugin.mjs"
- "src/lib/security/prompt-injection-guard.ts"
- ".github/workflows/validate-content.yml"
push:
branches: [main]
paths:
- "content/**"
- "scripts/validate-content.mjs"
- "scripts/audit-skills.mjs"
- "scripts/build-skills-sh-mirror.mjs"
- "scripts/build-agent-plugin.mjs"
- "src/lib/security/prompt-injection-guard.ts"
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Validate registry
run: bun run validate:content
- name: Security audit (prompt injection / malicious functions)
run: bun run audit:skills
# The skills/ mirror is what `npx skills add` (skills.sh) installs — it must
# never drift from content/skills/*.yaml.
- name: Check open Skills CLI mirror is current
run: bun run check:skills-mirror
# Root plugin.json / mcp.json must stay conformant with agent-plugins.org v1.
- name: Check Agent Plugin manifests are current
run: bun run check:agent-plugin