Files
opencode-power-pack/.github/workflows/ci.yml
Wayner Barrios ab74f6a2ce Add a fail-closed native sandbox runner for portable skill execution
Pin Anthropic's sandbox runtime and translate trusted skill profiles into lightweight, on-demand filesystem, network, credential, and process-tree restrictions. Add readiness diagnostics, secure command and Git workspace discovery, signal-safe cleanup, Linux and macOS integration coverage, packaged-runtime checks, and practical compatibility guidance for Codex, Claude Code, OpenCode, and Pi.
2026-08-16 13:43:54 -05:00

54 lines
1.4 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
lint-skills:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- run: npm ci
- run: node --test
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Validate Agent Skills specification
run: |
python -m pip install skills-ref==0.1.1
for skill in skills/*; do
agentskills validate "$skill"
done
sandbox-runtime:
name: sandbox-runtime-${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.11.1"
- name: Install Linux sandbox dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y bubblewrap socat ripgrep curl
if sysctl -n kernel.apparmor_restrict_unprivileged_userns >/dev/null 2>&1; then
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
fi
- run: npm ci
- name: Run sandbox contract and real containment tests
run: npm run test:sandbox
env:
OPP_SANDBOX_INTEGRATION: "1"