·
Last changedVersion:
This version passed the hardening gate. Hardening applied 4 targeted changes and preserved all other text. Classified findings before hardening: 0. Classified findings closed: 0. Classified findings remaining: 0. Unclassified scanner findings remaining: 0. Review findings closed: 6. Review findings remaining: 1.
None
None
Expand | File | Group | Subtype | Severity | Status |
|---|
No findings available
0 findings
A CronJob declaration in Encore.ts ties a schedule to an existing api(...) endpoint. The endpoint runs at the chosen cadence. Declare the CronJob at package level — not inside a function. The target endpoint must take no request parameters, as in the example below.
| Field | Example | Description |
|---|---|---|
|
| Simple interval. Must divide 24h evenly — |
|
| Standard cron expression (5 fields, UTC). |
Specify exactly one of every or schedule per CronJob declaration.
| Cron | Meaning |
|---|---|
| Every hour, on the hour |
| Daily at 02:00 UTC |
| Weekly on Sunday at midnight UTC |
| 04:00 UTC on the 15th of each month |
encore run. Only deployed environments fire crons.expose: false so it can't be triggered externally. This blocks public access only: other services in the app can still call it, so keep it safe under unexpected or repeated internal calls and rely on its own checks rather than on who the caller is.schedule are UTC. Convert from local time when designing the schedule.CronJob.every for "run on a regular interval" (must divide 24h).schedule for specific times of day or days of week.encore-pubsub skill instead.Get started with chainctlchainctl skill install public/encoredev/cron:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.cgr.dev/public/github.com/encoredev/encore/cron:latest
Apache-2.0
HARDENING.md
LICENSE
SKILL.md