Releases: homebysix/pre-commit-macadmin
Releases · homebysix/pre-commit-macadmin
Release list
Release v1.25.1
Added
check-munki-pkgsinfoandcheck-autopkg-recipesnow validate the type ofallow_untrusted,icon_hash,installed_size_staged,uninstaller_item_hash, anduninstaller_item_sizepkginfo keys. These are set by current Munki 7 code but aren't yet documented on the Munki wiki.
Changed
- Clarified RELEASING.md on which version to use when preparing a release, since the release workflow auto-bumps
setup.pyondevto the next patch version after each release.
Fixed
- Fixed a bug in
generate_autopkg_processor_versions.pythat caused argument-introduction versions to be miscalculated for any AutoPkg release with Python 2-only syntax. The regex/tokenizer fallback parser used for those releases only recognized the first key of eachinput_variablesdict, so most arguments were misattributed to whichever later release first became parseable by Python 3'sastmodule (typically reported as AutoPkg 1.1), causingcheck-autopkg-recipesto falsely flag long-standing recipes. - The release workflow now runs the test suite and requires it to pass before publishing a release.
check-autopkg-recipesnow reports an invalidMinimumVersionstring as a lint error instead of crashing with an uncaught exception.validate_supported_architecturesno longer crashes with aTypeErrorwhensupported_architecturesis present but not a list; the type mismatch is still reported byvalidate_pkginfo_key_types.
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.