-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.41 KB
/
Copy pathsecurity.yml
File metadata and controls
62 lines (51 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Security and quality
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
security-and-quality:
name: security-and-quality
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: 0
persist-credentials: false
- name: Install scanner prerequisite
shell: bash
run: |
if ! command -v rg >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y ripgrep
fi
- name: Validate repository
shell: bash
run: |
python3 scripts/validate_repo.py
python3 scripts/validate_cases.py
- name: Run static security checks
shell: bash
run: |
bash scripts/security_scan.sh .
- name: Build and verify skill package
shell: bash
run: |
bash scripts/build_skill.sh
python3 - <<'PY'
from pathlib import Path
import zipfile
package = Path("dist/slop-cop.skill")
assert package.is_file()
with zipfile.ZipFile(package) as archive:
assert "slop-cop/SKILL.md" in archive.namelist()
assert archive.testzip() is None
print(f"Validated {package}")
PY