Commit 8f5939b
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
- docs
- examples
- scripts/ado-script/node_modules
- .bin
- .vite/vitest
- @apidevtools/json-schema-ref-parser
- dist
- lib
- parsers
- resolvers
- types
- util
- lib
- parsers
- resolvers
- types
- util
- @esbuild/win32-x64
- @jridgewell/sourcemap-codec
- dist
- src
- types
- @jsdevtools/ono
- cjs
- esm
- @rollup
- rollup-win32-x64-gnu
- rollup-win32-x64-msvc
- @types
- estree
- json-schema
- lodash
- common
- fp
- node
- assert
- compatibility
- dns
- fs
- readline
- stream
- timers
- ts5.6
- web-globals
- @vercel/ncc
- dist
- ncc
- buildin
- loaders
- typescript/lib
- @vitest
- expect
- dist
- mocker
- dist
- pretty-format
- dist
- runner
- dist
- snapshot
- dist
- spy
- dist
- utils
- dist
- argparse
- lib
- assertion-error
- azure-devops-node-api
- handlers
- interfaces
- common
- opensource/node-http-ntlm
- cac
- deno
- dist
- call-bind-apply-helpers
- .github
- test
- call-bound
- .github
- test
- chai
- lib
- chai
- core
- interface
- utils
- check-error
- debug
- src
- deep-eql
- des.js
- lib
- des
- test
- dunder-proto
- .github
- test
- es-define-property
- .github
- test
- es-errors
- .github
- test
- es-module-lexer
- dist
- types
- es-object-atoms
- .github
- test
- esbuild
- bin
- lib
- estree-walker
- src
- types
- expect-type
- dist
- fdir
- dist
- function-bind
- .github
- test
- get-intrinsic
- .github
- test
- get-proto
- .github
- test
- gopd
- .github
- test
- has-symbols
- .github
- test
- shams
- hasown
- .github
- inherits
- is-extglob
- is-glob
- js-md4
- build
- doc
- fonts
- scripts
- prettify
- styles
- src
- tests
- js-yaml
- bin
- dist
- lib
- schema
- type
- json-schema-to-typescript
- .github/workflows
- dist/src
- types
- src
- types
- lodash
- fp
- loupe
- lib
- magic-string
- dist
- math-intrinsics
- .github
- constants
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments