Closed vonbraunbates closed 1 week ago
@vonbraunbates APPLY_FIXES_EVENT is a variable only used in MegaLinter GitHub Actions Workflow, it is not internally used by MegaLinter own engine, that's why it is not in the Schema :)
(defining it in .mega-linter.yml config file would have no effect at all)
So the validator is correct: thank you, I will remove these lines from my config file and put them in the actions workflow instead.
You're welcome :)
Describe the bug As for #321 except the properties missing from the schema are
APPLY_FIXES_EVENT
andAPPLY_FIXES_MODE
To Reproduce Steps to reproduce the behavior:
APPLY_FIXES_EVENT: commit
to.mega-linter.yml
npx mega-linter-runner -e "'ENABLE_LINTERS=YAML_V8R'"
to validate the megalinter config file against the schema.megalinter-reports/linters_logs/WARNING-YAML-V8R.log
to see the details:Via a process of elimination, the
APPLY_FIXES_*
properties turn out to be missing from the schema.Expected behavior These are allowed flags so should validate correctly in V8R. Perhaps the only subtlety with these is this note which reads:
Does that mean that neither of these are valid properties (because they "can not be defined in [the] config file")? In which case the V8R report is correct, but the documentation should be clarified (to specify that they should be supplied only as environment variables).
Screenshots None
Additional context None