Repository navigation
59 lines (50 loc) · 1.77 KB
/
Copy pathskill-lint.yml
File metadata and controls
59 lines (50 loc) · 1.77 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: skill-lint
# Quality + safety gate for every skill change.
# - Validates SKILL.md structure against CONTRIBUTING.md rules
# - Scans for client/engagement identifiers (hashed denylist) and leaked secrets
# Runs on PRs and pushes to main. No external dependencies — stdlib Python only.
on:
pull_request:
paths:
- "skills/**"
- "engine/**"
- "docs/disclosed-reports/**"
- "cbh/data/skill_index.json"
- "scripts/gen_skill_index.py"
- "scripts/lint_skills.py"
- "scripts/.identifier-denylist.sha256"
- ".github/workflows/skill-lint.yml"
push:
branches: [main]
paths:
- "skills/**"
- "engine/**"
- "docs/disclosed-reports/**"
- "cbh/data/skill_index.json"
- "scripts/gen_skill_index.py"
- "scripts/lint_skills.py"
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
name: Lint skills
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Validate skills (structure + identifier/secret scan)
run: python3 scripts/lint_skills.py
# The routing maps are only useful if every mapped skill is installed and
# every installed hunt-* skill is reachable. skill_map.py checks both and
# exits non-zero, so a skill added without a mapping fails here rather than
# silently becoming unreachable.
- name: Validate skill routing (skill_map self-check)
run: python3 engine/skill_map.py
- name: Check the bundled CLI skill and report index
run: python3 scripts/gen_skill_index.py --check
- name: Summary
if: always()
run: echo "Skill lint finished — see annotations above for any errors/warnings."