This pull request updates the logic used to check whether macOS applications (1Password, Firefox, and Slack) are up to date. The new queries simplify and improve accuracy by directly identifying outdated app versions, rather than relying on a combination of existence and version checks. **Policy query logic updates:** * Updated the query in `update-1password.yml` to directly select hosts with outdated 1Password versions, making the check more precise. * Updated the query in `update-firefox.yml` to directly select hosts with outdated Firefox versions, improving accuracy. * Updated the query in `update-slack.yml` to directly select hosts with outdated Slack versions, ensuring more reliable detection. **Script logic update:** * Changed the query line construction in `.github/scripts/dogfood-policy-updater-latest-1password-macos.sh` to match the new logic for identifying outdated 1Password installations.
7 lines
536 B
YAML
7 lines
536 B
YAML
- name: macOS - Firefox up to date
|
|
query: SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM apps WHERE name = 'Firefox.app' AND version_compare(bundle_short_version, '140.0.2') < 0);
|
|
critical: false
|
|
description: The host may have an outdated version of Firefox, potentially risking security vulnerabilities or compatibility issues.
|
|
resolution: Download the latest version from self-service or check for updates using Firefox's built-in update functionality. You can also delete Firefox if you are no longer using it.
|
|
platform: darwin
|