-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pre-commit-hooks.yaml
142 lines (126 loc) · 4.75 KB
/
.pre-commit-hooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
- id: check-autopkg-recipe-list
name: Check AutoPkg Recipe List
description: This hook checks AutoPkg recipe lists (in txt, plist, yaml, or json format) for common issues.
entry: check-autopkg-recipe-list
language: python
files: 'recipe.?list\.(plist|yaml|yml|json|txt)$'
types: [text]
- id: check-autopkg-recipes
name: Check AutoPkg Recipes
description: This hook checks AutoPkg recipes to ensure they contain required top-level keys.
entry: check-autopkg-recipes
language: python
files: '\.recipe(\.plist|\.yaml|\.json)?$'
types: [text]
- id: check-git-config-email
name: Check Git Config Email
description: This hook checks to ensure the Git config email matches one of the specified domains.
entry: check-git-config-email
language: python
pass_filenames: false
always_run: true
- id: check-jamf-extension-attributes
name: Check Jamf EAs
description: This hook checks Jamf extension attributes for common issues.
entry: check-jamf-extension-attributes
language: python
# Switch from files regex to "OR" types when that feature is available:
# https://github.com/pre-commit/pre-commit/issues/607
files: '(jamf|jss)/extension.?attributes/.*\.(sh|bash|py|rb|js|pl)$'
types: [text]
# WORK IN PROGRESS
# - id: check-jamf-json-manifests
# name: Check Jamf JSON Manifests
# description: This hook checks Jamf JSON manifests for inconsistencies and common issues.
# entry: check-jamf-json-manifests
# language: python
# files: '\.json$'
# types: [text]
- id: check-jamf-profiles
name: Check Jamf Profiles
description: This hook checks Jamf profiles for common issues.
entry: check-jamf-profiles
language: python
# Switch from files regex to "OR" types when that feature is available:
# https://github.com/pre-commit/pre-commit/issues/607
files: '(jamf|jss)/profiles/.*\.(mobileconfig|plist)$'
types: [text]
- id: check-jamf-scripts
name: Check Jamf Scripts
description: This hook checks Jamf scripts for common issues.
entry: check-jamf-scripts
language: python
# Switch from files regex to "OR" types when that feature is available:
# https://github.com/pre-commit/pre-commit/issues/607
files: '(jamf|jss)/scripts/.*\.(sh|bash|py|rb|js|pl)$'
types: [text]
- id: check-munki-pkgsinfo
name: Check Munki Pkginfo Files
description: This hook checks Munki pkginfo files to ensure they are valid.
entry: check-munki-pkgsinfo
language: python
files: "pkgsinfo/"
types: [text]
- id: check-munkiadmin-scripts
name: Check MunkiAdmin Scripts
description: This hook ensures MunkiAdmin scripts are executable.
entry: check-munkiadmin-scripts
language: python
files: "^MunkiAdmin/scripts/"
types: [text]
- id: check-munkipkg-buildinfo
name: Check MunkiPkg Build-Info Files
description: This hook checks MunkiPkg build-info files to ensure they are valid.
entry: check-munkipkg-buildinfo
language: python
files: 'build-info\.(plist|yml|yaml|json)$'
types: [text]
- id: check-outset-scripts
name: Check Outset Scripts
description: This hook checks Outset scripts to ensure they're executable.
entry: check-outset-scripts
language: python
files: "usr/local/outset/(boot-once|boot-every|login-once|login-every|login-privileged-once|login-privileged-every|on-demand)/"
types: [text]
- id: check-plists
name: Check Plists
description: This hook checks XML property list (plist) files for basic syntax errors.
entry: check-plists
language: python
files: '\.(plist|recipe|mobileconfig|pkginfo)$'
types: [text]
- id: check-preference-manifests
name: Check Apple Preference Manifests
description: This hook checks preference manifest plists for inconsistencies and common issues.
entry: check-preference-manifests
language: python
files: '\.plist$'
types: [text]
- id: forbid-autopkg-overrides
name: Forbid AutoPkg Overrides
description: This hook prevents AutoPkg overrides from being added to the repo.
entry: forbid-autopkg-overrides
language: python
files: '\.recipe(\.plist|\.yaml|\.json)?$'
types: [text]
- id: forbid-autopkg-trust-info
name: Forbid AutoPkg Trust Info
description: This hook prevents AutoPkg recipes with trust info from being added to the repo.
entry: forbid-autopkg-trust-info
language: python
files: '\.recipe(\.plist|\.yaml|\.json)?$'
types: [text]
- id: format-xml-plist
name: Auto-format plist [XML]
description: Auto-format a Property List (plist) as XML.
entry: plutil -convert xml1
language: system
files: '\.(mobileconfig|pkginfo|plist|recipe)$'
types: [text]
- id: munki-makecatalogs
name: Run Munki Makecatalogs
description: This hook runs the "makecatalogs" command to ensure all referenced packages are present and catalogs are up to date.
entry: munki-makecatalogs
language: python
pass_filenames: false
always_run: true