Code scanning frequency per repository, within an instance range #346

closed cmc opened this on 2026-11-05 10:23 UTC

Discussion

cmc 2026-11-05 10:23 UTC

Code scanning runs every enabled repository on one instance-wide cron, [security] schedule. Repositories cannot scan less often, and config load only counts the cron's fields, so a five-field expression ParseCron rejects loads and NextRun falls back to 24 hours.

  • [security] takes most_often and least_often (daily, weekly, monthly), default between them, and hour (UTC) in place of schedule. Weekly is Sunday, monthly the 1st. A config naming schedule is refused at load.
  • repo settings security-frequency <owner/name> daily|weekly|monthly, within the instance's range; recomputes the next scan when scanning is on.
  • A stored choice outside a later, narrower range scans at the nearest allowed frequency.
  • repo security status reports the frequency; the settings page has a dropdown.

closed by cmc in commit eb2ad4cd3e: Code scanning frequency per repository, within an instance range

2026-11-05 10:35 UTC