Mark critical policies in standard query library. (#15070)

Closes: #14812 

Changes:
- Added a "critical" tag to critical policies in the standard query
library.
- Updated the macOS version used in the "Operating system up to date
(macOS)" policy.
- Updated the name of a policy to be in sentence case ("MDM Enrolled
(macOS)" » "MDM enrolled (macOS)")
- Updated the build-static-content script to add a `critical` attribute
to queries that have the "critical" tag.
- Updated the /queries page to add a "critical" badge to queries that
have the critical attribute.
This commit is contained in:
Eric
2023-11-09 21:18:02 -06:00
committed by GitHub
parent 4c639a9dc7
commit eedb867024
4 changed files with 24 additions and 9 deletions
+2
View File
@@ -69,6 +69,8 @@ module.exports = {
// If a query has a 'requires MDM' tag, we'll set requiresMDM to true for this query, and we'll ingore this tag.
if(_.trim(tag.toLowerCase()) === 'mdm required'){
query.requiresMdm = true;
} else if(_.trim(tag.toLowerCase()) === 'critical') {
query.critical = true;
} else {
// Removing any extra whitespace from tags and changing them to be in lower case.
formattedTags.push(_.trim(tag.toLowerCase()));