Schedule recurring scans
Scan a repository, a whole workspace, a web application or a network daily or weekly, re-import a workspace on a cadence, or mail a report or the audit log on a schedule.
A schedule runs a scan for you on a fixed cadence, daily or weekly at a time you choose. You can schedule a single repository, a whole workspace, a web application or a network, and a workspace schedule can also re-import its repositories or mail a report instead.
What it is for
Code changes every day, and a scan from last month says little about today. A schedule keeps findings and security scores current without anyone having to remember to start a scan. A scheduled scan is the same as one you start by hand, and every scan shows whether it was started manually, by a schedule or from CI.
What a schedule does
- A repository schedule scans that repository, on the branch you chose or on its default branch.
- A workspace schedule scans every enabled repository in it at that moment, each on its default branch. Repositories imported later are included automatically, and disabled ones are skipped.
- A web application schedule scans it, with its sign-in if it has one. See Scan a web application.
- A network schedule scans it, through its connector agent if it has one. See Network scanning.
- Sync repositories on a workspace re-imports its repositories, the same as Sync now. It uses whichever valid token the workspace has when it runs, so rotating a token does not break it. Without a valid token it still syncs the public repositories.
- Email a report mails a PDF report. See Reports.
- A risk register report schedule mails your team's risk register as a PDF. Create and list these with Schedule report on the Risk register screen. See Risk register.
- An audit log report schedule mails your team's audit log as a PDF, covering the time since the previous report, or the last day or week the first time. Only admins can create, change or delete one. Create it with Schedule report on the Audit log screen under Settings. See Audit log.
- When a scheduled scan starts, Vulnara sends a scan-started notification.
What you can set
- Runs: on a workspace, choose Scan, Sync repositories or Email a report. A repository, web application or network schedule always scans.
- Frequency: Daily or Weekly.
- Day: the day of the week, for weekly schedules.
- Time: the time of day, in your own timezone. The zone is named beside the field.
- Branch: repository schedules only. Leave it blank to scan the default branch.
- History: repository and workspace scan schedules only. Full history or Latest commit only; left at Team default, the schedule follows the team's default history, even when an admin changes it later. See Run a scan.
- What to scan for: the category a recurring scan looks for: Code analysis (
SAST), Dependencies (SCA), Secrets (SECRETS) or Personal data (PII), from the categories your team may run. A scan schedule must name one; there is no default. It is not shown for sync or report schedules, or for web applications and networks. - Send to: for a report, one or more email addresses. They do not have to be members of your account.
- Active: pause a schedule without deleting it, and resume it later.
Do it
- Open a repository on the Repositories screen, a workspace on the Workspaces screen, a web application on the Web applications screen, or a network on the Networks screen, and go to the Schedules tab.
- Choose Add schedule.
- Set the frequency, day and time. For a repository or workspace, also choose what to scan for, and optionally the branch and the history. On a workspace, choose what the schedule runs.
- Choose Save schedule. The row shows when the next run is due.
Use the switch on a row to pause or resume a schedule, and the delete action to remove it. A paused schedule reads as Paused instead of naming a next run.
From the API
With GraphQL, use createScanSchedule, updateScanSchedule, deleteScanSchedule and scanSchedules. Times are given in UTC (hourUtc, minuteUtc), dayOfWeek runs from 0 (Monday) to 6, and a schedule names one of repositoryId, gitEntityId, webTargetId or networkId. A REPORT schedule with no target mails the team security summary, the risk register with reportKind: RISK_REGISTER, or the audit log with reportKind: AUDIT_LOG, which only admins may create, change or delete. lastRunOutcome and lastRunReason say whether the last run started and, if not, why.
About category:
- A scan schedule must carry one. Leave it out and the mutation is refused with a
VALIDATION_ERRORcarrying a field error ofREQUIREDoncategory. - A sync or report schedule must not supply one, and reading either back returns
categoryas null. Web application and network schedules take none. - On
updateScanSchedule, leavecategoryout to keep the current one. Sendingnullis refused withINVALID.
mutation NightlyScan {
createScanSchedule(
input: {
repositoryId: "<repository-id>"
category: SECRETS
frequency: DAILY
hourUtc: 2
minuteUtc: 30
}
) {
id
nextRunAt
}
}MCP clients can read schedules with scan_schedules and scan_schedule.
Good to know
- A weekly schedule near midnight may show a different weekday in your timezone than in UTC.
- Creating, changing or deleting a schedule needs the Editor role or above. Viewers can see schedules. See Teams and roles.
- A schedule cannot be created for a disabled repository.
- If a scheduled run could not start, for example because a plan limit was reached, a web application's address no longer points to a public site, or a network's connector agent was offline, the schedule says so under its row until a later run starts.
- Scheduled scans use your plan's scan minutes like any other scan, and count once per category against your limit on parallel scans. If that limit stops a workspace schedule part way, the rest of that run is skipped; scans already started keep running.
- If one repository in a workspace schedule cannot be scanned, the others still are.
- If nothing your team may run covers a schedule's category, no scan runs that time. An older scan schedule with no category never runs, and Vulnara sends a scan-failed notification naming it each time it is due. Edit it and choose what to scan for.
- A report that cannot be produced is tried again at its next run. Report schedules do not use scan minutes.
- Schedules are daily or weekly at a set time. Custom cadences are not supported.