Schedule recurring repository scans
Scheduled scans run a Smart or Deep scan for a selected repository and branch on a recurring cadence. Open Scans → Schedules from the dashboard.
Create a schedule
- Select New schedule.
- Choose the repository and branch.
- Choose a frequency and scan type.
- Review the Plan impact estimate.
- Select Create.
Schedule times use the organization timezone configured in Settings. CodeStax calculates the next run in that timezone and stores it as UTC.
Scheduled scan availability, minimum frequency, and projected units depend on your plan. Deep scans have a higher schedule weight than Smart scans when the plan budget is calculated.
Only one recurring schedule can exist for the same repository and branch. Use another branch or edit the existing schedule if CodeStax reports a duplicate.
Pause, edit, or delete a schedule
Use the actions beside a schedule to:
- Pause or resume future runs
- Change its cadence, branch, or scan type
- Delete the schedule
Expanding a schedule shows recent executions, including status, scan link, issues found, duration, and any failure message.
Use the API
Schedule endpoints are tied to the person who creates the schedule, so they need a signed-in dashboard session. API keys are rejected (401). The dashboard uses these calls:
| Call | Purpose |
|---|---|
POST /api/scheduled-scans/estimate | Estimate plan usage for a cron expression before saving |
POST /api/scheduled-scans | Create a schedule (repo_id, trigger_branch, cron_expression, scan_type, is_active) |
GET /api/scheduled-scans/{schedule_id}/history | Recent executions |
POST /api/scheduled-scans/{schedule_id}/toggle | Pause or resume |
DELETE /api/scheduled-scans/{schedule_id} | Remove the schedule |
To run scans on a timetable from your own CI instead, call POST /api/scans/trigger/{repo_id} with an API key that has the Manage scans (write:scans) permission.
For dependency-only schedules inside the SCA workspace, see Schedule dependency scans.