Skip to content

Commit 8f5939b

Browse files
jamesadevineCopilot
andcommitted
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>
1 parent de911dc commit 8f5939b

4,329 files changed

Lines changed: 1216517 additions & 11 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ description: "Checks for outdated dependencies and opens PRs"
8181
engine:
8282
id: copilot
8383
model: claude-sonnet-4.5
84-
schedule: weekly on monday around 9:00
84+
on:
85+
schedule: weekly on monday around 9:00
8586
pool: AZS-1ES-L-MMS-ubuntu-22.04
8687
tools:
8788
azure-devops: true

docs/front-matter.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ engine: copilot # Engine identifier. Defaults to copilot. Currently only 'copilo
1616
# id: copilot
1717
# model: claude-opus-4.7
1818
# 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.
2627
pool: AZS-1ES-L-MMS-ubuntu-22.04 # Agent pool name (string format). Defaults to AZS-1ES-L-MMS-ubuntu-22.04.
2728
# pool: # Alternative object format (required for 1ES if specifying os)
2829
# name: AZS-1ES-L-MMS-ubuntu-22.04

examples/azure-devops-mcp.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
name: "ADO Work Item Triage"
33
description: "Triages work items using the Azure DevOps MCP"
4-
schedule: daily around 9:00
4+
on:
5+
schedule: daily around 9:00
56
tools:
67
azure-devops:
78
toolsets: [core, work, work-items]

examples/lean-verifier.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
name: "Lean Formal Verifier"
33
description: "Analyzes code and builds formal Lean 4 proofs of critical invariants"
4-
schedule: weekly on friday around 17:00
4+
on:
5+
schedule: weekly on friday around 17:00
56
tools:
67
cache-memory: true
78
runtimes:

examples/sample-agent.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
name: "Daily Code Review"
33
description: "Reviews code changes and creates summary reports"
4-
schedule: daily
4+
on:
5+
schedule: daily
56
repositories:
67
- repository: azure-devops-agentic-pipelines
78
type: git

scripts/ado-script/node_modules/.bin/esbuild

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/ado-script/node_modules/.bin/esbuild.cmd

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/ado-script/node_modules/.bin/esbuild.ps1

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/ado-script/node_modules/.bin/js-yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/ado-script/node_modules/.bin/js-yaml.cmd

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)