Releases: homebysix/pre-commit-macadmin
Releases · homebysix/pre-commit-macadmin
Release v1.25.0
Added
- New
format-autopkg-yaml-recipeshook that tidies AutoPkg YAML recipes by reordering keys and normalizing spacing. Adapted from @grahampugh's plist-yaml-plist. check-munki-pkgsinfonow validates the Munki 7.1 pkginfo keysblocking_applications_manual_quit_only(boolean) andblocking_applications_quit_script(string).check-munki-pkgsinfonow validates the type ofdescription_stagedanddisplay_name_stagedpkginfo keys.check-munki-pkgsinfonow validates the shebang ofblocking_applications_quit_script, consistent with other pkginfo script fields.check-munki-pkgsinfonow warns when pkginfo keys removed in Munki 7 are present (additional_startosinstall_options,copy_local).check-autopkg-recipesincludes URLDownloaderPython among the list of downloader processors.check-autopkg-recipesnow validatesMinimumVersionrequirements for core AutoPkg processor arguments using a generated table from AutoPkg release history.check-autopkg-recipesnow also validates deprecated and removed core processors dynamically from the generated table.check-autopkg-recipesnow recognizesintune,fleet,ws1, andjamfclirunneras known recipe types in processor convention checks (strict mode), and groupsjss-uploadwithjss.
Changed
check-autopkg-recipesnow errors when encountering removed AutoPkg processors, and warns on deprecated processors. As of AutoPkg 3.0.0, CURLDownloader and CURLTextSearcher are removed.check-munki-pkgsinfowarning messages for removedinstaller_typeanduninstall_methodvalues now say "removed in Munki 7" instead of "deprecated".- Simplified and minimized Python code in many hooks and tests.
Fixed
- Fixed an operator precedence bug in
check-jamf-json-manifeststhat caused spurious type-mismatch errors fordefaultvalues in props without an explicit type.
Removed
- Removed the "may be a duplicate import" check from
check-munki-pkgsinfo, along with its--warn-on-duplicate-importsflag.
Release v1.24.1
Changed
- Skipped AutoPkg recipe type convention checks when type is unknown. (#55)
- Updated release documentation to reflect new automated workflow.
- Built error handling into release automation workflow.
Release v1.24.0
Added
- Automated GitHub Actions workflow for creating releases and bumping versions.
Changed
- Updated CodeQL workflow to run on
mainbranch instead ofmaster.
v1.23.0
Added
- Added support for minimum AutoPkg version validation for new VariableSetter processor.
check-munkiadmin-scriptsandcheck-outset-scriptsnow support the--valid-shebangsargument for specifying additional valid interpreter paths.
Changed
check-munki-pkgsinfonow skips warning about missing packages if aPackageCompleteURLkey is set in the pkginfo.
v1.22.1
Added
- Added support for minimum AutoPkg version validation for new VariableSetter processor.
Changed
check-munki-pkgsinfonow skips warning about missing packages if aPackageCompleteURLkey is set in the pkginfo.
v1.22.0
v1.21.1
v1.21.0
v1.20.0
Added
check-autopkg-recipesandcheck-munki-pkgsinfonow validates thatsupported_architecturesvalues are set appropriately.- In anticipation of Munki 7,
check-munki-pkgsinfovalidates thatversion_scriptis a string starting with a script shebang. check-munki-pkgsinfonow checks for specific deprecatedinstaller_typeanduninstall_methodvalues, most of which are detailed here.- Added new FindAndReplace core processor version requirements for AutoPkg recipes.
Changed
v1.19.0
Added
- Added
--warn-on-missing-installer-itemsflag that makes missing Munki install/uninstall items a warning instead of a failure. (#86, thanks to @haircut) - Apply the same checks to
uninstaller_item_locationthat were previously applied toinstaller_item_location. check-autopkg-recipesrequires Munki recipepkginfodicts to contain at leastnameanddescription.check-autopkg-recipesnow validates thatuninstall_methodanduninstall_scriptare set appropriately in Munki recipes.
Changed
check-autopkg-recipesincludes jamf-upload as an AutoPkg recipe type, and updated processors included in jamf/jamf-upload recipe convention.check-munki-pkgsinforequires aversionkey in addition tonameanddescription.
Fixed
- Bug fix in
check-munkiadmin-scriptsthat prevented script names from processing correctly. - Bug fix in
check-munki-pkgsinfothat prevented--warn-on-duplicate-importsflag from working correctly.