You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(compile): reject unknown front-matter fields with deny_unknown_fields
Add #[serde(deny_unknown_fields)] to FrontMatter so typos like
'safeoutputs:' (instead of 'safe-outputs:') or top-level 'schedule:'
(instead of 'on: schedule:') produce a clear compile error rather than
being silently ignored.
Previously, unknown YAML keys were silently dropped by serde, which
meant write-requiring safe-outputs could bypass the
validate_write_permissions check entirely, leading to confusing runtime
errors (e.g. 'AZURE_DEVOPS_ORG_URL not set').
Also fixes all example files and docs that incorrectly used top-level
'schedule:' instead of 'on: schedule:'.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/front-matter.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,14 @@ engine: copilot # Engine identifier. Defaults to copilot. Currently only 'copilo
16
16
# id: copilot
17
17
# model: claude-opus-4.7
18
18
# timeout-minutes: 30
19
-
schedule: daily around 14:00 # Fuzzy schedule syntax - see docs/schedule-syntax.md
20
-
# schedule: # Alternative object format (with branch filtering)
21
-
# run: daily around 14:00
22
-
# branches:
23
-
# - main
24
-
# - release/*
25
-
workspace: repo # Optional: "root", "repo" (alias: "self"), or a checked-out repository alias. If not specified, defaults to "root" when no additional repositories are listed in `checkout:`, and to "repo" when one or more additional repos are checked out. See "Workspace Defaults" below.
19
+
on:
20
+
schedule: daily around 14:00 # Fuzzy schedule syntax - see docs/schedule-syntax.md
21
+
# schedule: # Alternative object format (with branch filtering)
22
+
# run: daily around 14:00
23
+
# branches:
24
+
# - main
25
+
# - release/*
26
+
workspace: repo# Optional: "root", "repo" (alias: "self"), or a checked-out repository alias. If not specified, defaults to "root" when no additional repositories are listed in `checkout:`, and to "repo" when one or more additional repos are checked out. See "Workspace Defaults" below.
26
27
pool: AZS-1ES-L-MMS-ubuntu-22.04 # Agent pool name (string format). Defaults to AZS-1ES-L-MMS-ubuntu-22.04.
27
28
# pool: # Alternative object format (required for 1ES if specifying os)
0 commit comments