How to sync
Send your scan results to the dashboard in two steps — preview, then sync.
Syncing sends your scan results to your CapyShield(opens in a new tab) dashboard so your whole team can see them — which vulnerabilities are reachable, which are ruled out by a team rule, and which need fixing. The Cloud only ever receives results: vulnerability IDs, package URLs and statuses, reachability facts, the project name and file paths. Paths are sent as real relative paths unless you pass --redact-paths or set vex.redact_paths: true (which capyshield init writes); then they are sent as sha256:<hex>. It never receives your source code, secrets or egress payloads.
Before you sync
- Sign in at app.capyshield.com/sign-in(opens in a new tab). Your first sign-in creates your team.
- Create a token under API tokens → Create token(opens in a new tab). Copy it — it's shown once.
Step 1 — Preview first (safe)
See exactly what will be sent, without uploading anything:
capyshield vex --input trivy.json --sync --dry-runRun with --dry-run first to see the payload; --sync alone uploads immediately. A dry run doesn't pull team rules, so findings a team rule would decide show their local result.
Step 2 — Sync to the dashboard
Run your scan and push the results:
export CAPYSHIELD_TOKEN=<token>
capyshield vex --input trivy.json --syncResults appear on your project page within seconds.
What happens after a sync
- Every sync updates the official status. A project (one repository) is identified by the scanned folder's name: the
projectfield, taken from--repo(default: the current directory). No git remote, branch or ref is sent. Branch previews come with a later CLI release. - Identical syncs don't create a new history row. If nothing changed, only
last_sync_atis bumped. Syncs are unlimited on every plan. - A refused upload fails the run.
vex --syncexits 1 when the upload is refused (401,402,403,409,413,429) or the Cloud is unreachable. If pulling team rules fails, the CLI warns and continues with local rules. In CI, usecontinue-on-erroron the sync step if an outage shouldn't fail the build.
CLI contract (v0.2)
POST /v1/vex/sync with Authorization: Bearer $CAPYSHIELD_TOKEN. Payloads are at most 500 KB and stay compatible with CLI v0.1.x.
{
"project": "my-repo",
"scanner": "trivy",
"generated_at": "2026-11-27T10:15:30Z",
"cli_version": "0.2.1",
"openvex": { "author": "capyshield", "statements": [ ... ] },
"findings": [
{
"vulnerability": "CVE-2024-29041",
"purl": "pkg:npm/[email protected]",
"severity": "medium",
"status": "affected",
"decided_by": "reachability",
"reachability": {
"facts": { "in_lockfile": true, "dependency_scope": "direct", "imported_in_prod": true, "matched_files_count": 3 },
"matched_files": ["src/a.ts", "src/b.ts", "src/c.ts"]
}
}
]
}project— the scanned folder's name as a URL-safe slug (hashed too when path redaction is on).findings[]— one per vulnerability and package, withreachability.matched_files.- Paths are real relative paths unless
--redact-pathsorvex.redact_paths: trueis set; then they aresha256:<hex>.