Docs › Reference › CI Guard
CI Guard
GitHub Actions ubuntu-latest runners have passwordless sudo, BTF and the kprobe PMU, so the kernel file backend loads in a workflow step.
jobs:
agent:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install kprobe
run: curl -fsSL https://kprobe.xyz/install.sh | sh
- name: Agent run, under policy
run: |
sudo kprobe run --policy .kprobe/claude-code.yaml \
--rules /opt/kprobe/rules --user runner --log kprobe.jsonl \
-- claude -p "fix the failing test"
- uses: actions/upload-artifact@v4
if: always()
with: { name: timeline, path: kprobe.jsonl }kprobe run exits with the agent's exit code, or 137 when a kill rule ended the tree, so a blocked exfiltration fails the job. The timeline is uploaded either way.
