- tests/: bats test suite for 8 modules (suppress, heal, firewall, detect, validate, colors, dscl, backup) - demo: simulated full bypass flow for showcasing (no real changes) - --json flag for report and audit commands (machine-readable output) - vpn-kill: pf-based kill-switch that blocks MDM outside VPN tunnel - vpn-kill-remove / vpn-kill-status: manage the kill-switch - Responded to 5 more bypass-mdm issues - CI now includes all new lib files in ShellCheck - Bump 1.4.0 -> 1.5.0
66 lines
1.5 KiB
YAML
66 lines
1.5 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
shellcheck:
|
|
name: ShellCheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Run ShellCheck
|
|
uses: ludeeus/action-shellcheck@master
|
|
with:
|
|
severity: warning
|
|
additional_files: >
|
|
unleash
|
|
lib/colors.sh
|
|
lib/detect.sh
|
|
lib/validate.sh
|
|
lib/dscl.sh
|
|
lib/suppress.sh
|
|
lib/backup.sh
|
|
lib/status.sh
|
|
lib/heal.sh
|
|
lib/firewall.sh
|
|
lib/harden.sh
|
|
lib/whitelist.sh
|
|
lib/check.sh
|
|
lib/monitor.sh
|
|
lib/history.sh
|
|
lib/doctor.sh
|
|
lib/selfupdate.sh
|
|
lib/uninstall.sh
|
|
lib/config.sh
|
|
lib/report.sh
|
|
lib/ma_detect.sh
|
|
lib/demo.sh
|
|
lib/vpn.sh
|
|
|
|
syntax:
|
|
name: Bash Syntax Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Check syntax
|
|
run: |
|
|
for f in unleash lib/*.sh examples/*.sh; do
|
|
[ -f "$f" ] || continue
|
|
echo "Checking: $f"
|
|
bash -n "$f" || exit 1
|
|
done
|
|
echo "All files pass syntax check"
|
|
|
|
markdown:
|
|
name: Markdown Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: DavidAnson/markdownlint-cli2-action@v16
|
|
with:
|
|
globs: '*.md'
|