Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

ci: security pipeline — CodeQL, dependency review, Dependabot

enes5bc26eb8b719
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 000000000..04276c3ae
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,33 @@
+version: 2
+updates:
+ # npm dependencies: weekly, grouped so one PR carries the routine bumps instead
+ # of a dozen. Security updates still come through as their own PRs immediately.
+ - package-ecosystem: npm
+ directory: /
+ schedule:
+ interval: weekly
+ day: monday
+ open-pull-requests-limit: 5
+ groups:
+ dev-dependencies:
+ dependency-type: development
+ update-types: [minor, patch]
+ production-minor-patch:
+ dependency-type: production
+ update-types: [minor, patch]
+ # node-pty / electron are ABI-sensitive (postinstall rebuilds node-pty against
+ # Electron's ABI) — take those majors by hand, not on an auto-PR.
+ ignore:
+ - dependency-name: electron
+ update-types: [version-update:semver-major]
+ - dependency-name: node-pty
+ update-types: [version-update:semver-major]
+
+ # Keep the GitHub Actions pinned in the workflows current (security patches to
+ # checkout / setup-node / codeql-action land here).
+ - package-ecosystem: github-actions
+ directory: /
+ schedule:
+ interval: weekly
+ day: monday
+ open-pull-requests-limit: 5
diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml
new file mode 100644
index 000000000..19bc66170
--- /dev/null
+++ b/.github/workflows/security.yml
@@ -0,0 +1,55 @@
+name: Security
+
+# Two independent security gates on every PR into main (and a weekly baseline scan):
+# - CodeQL static analysis of the JS/TS sources (main + preload + renderer + server).
+# - Dependency review: blocks a PR that adds a vulnerable or disallowed-license dep.
+# Both are free on public repos and add no secrets to the PR runner.
+on:
+ pull_request:
+ branches: [main]
+ push:
+ branches: [main]
+ schedule:
+ # Weekly re-scan so a newly-disclosed CVE in an unchanged dependency still surfaces.
+ - cron: '17 4 * * 1'
+
+# Least privilege: only CodeQL needs security-events:write to upload results.
+permissions:
+ contents: read
+
+jobs:
+ codeql:
+ name: CodeQL
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ security-events: write
+ steps:
+ - uses: actions/checkout@v4
+ - uses: github/codeql-action/init@v3
+ with:
+ languages: javascript-typescript
+ # 'security-extended' adds higher-recall security queries beyond the default set.
+ queries: security-extended
+ - uses: github/codeql-action/analyze@v3
+ with:
+ category: '/language:javascript-typescript'
+
+ dependency-review:
+ name: Dependency review
+ # Only meaningful on a PR (it diffs the PR's manifest against the base).
+ if: github.event_name == 'pull_request'
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pull-requests: write # post the summary comment on the PR
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/dependency-review-action@v4
+ with:
+ # Fail the PR on a moderate-or-worse advisory in an added/changed dependency.
+ fail-on-severity: moderate
+ comment-summary-in-pr: on-failure
+ # BUSL-1.1 is the project's own license; deny the classic copyleft licenses
+ # that would be incompatible with redistributing the app.
+ deny-licenses: AGPL-3.0, GPL-2.0, GPL-3.0