fleet/.github/scripts
Allen Houchins 0aece4fea4
Update dogfood-policy-updater-latest-safari.sh (#38133)
This pull request simplifies and improves the automation for updating
Safari version policies on macOS by switching from a multi-line YAML
query to a single-line query and streamlining the associated update
script. The changes make the update process more robust, easier to
maintain, and less error-prone, especially when parsing and updating the
policy file.

**Policy and script simplification:**

* Converted the `query` field in `update-safari.yml` from a multi-line
YAML block to a single-line statement, reducing complexity and making it
easier to update programmatically.

**Script robustness and maintainability:**

* Updated `.github/scripts/dogfood-policy-updater-latest-safari.sh` to
extract and update the single-line `query` instead of handling a
multi-line block, greatly simplifying the parsing and replacement logic.
[[1]](diffhunk://#diff-87712030515d50f6a970f044127d52639dac98021cf573f214f8f36cb1273c17L26-R37)
[[2]](diffhunk://#diff-87712030515d50f6a970f044127d52639dac98021cf573f214f8f36cb1273c17L97-R123)
* Improved error handling for environment variables, requiring only the
essential `DOGFOOD_AUTOMATION_TOKEN` to be set, and clarified error
messages.
* Enhanced validation of the Safari feed response by checking for valid
JSON and explicit API errors using `jq`, making the update process more
reliable.
* Changed the update workflow to write changes directly to the file and
rely on GitHub Actions to create pull requests, removing the script's
own git and PR logic for a cleaner CI/CD process.
2026-01-13 15:04:36 -06:00
..
check-infra-dependencies.sh Check whether the infra dependencies are ready before E2E test (#870) 2021-06-02 16:56:44 -07:00
detect-new-fmas-in-pr.sh Improve changed app detection in CI (#37838) 2026-01-05 15:01:47 -06:00
dogfood-policy-updater-latest-1password-macos.sh Refactor policy updater scripts and workflow for PR automation (#35388) 2025-11-19 11:09:36 -06:00
dogfood-policy-updater-latest-macos.sh Refactor policy updater scripts and workflow for PR automation (#35388) 2025-11-19 11:09:36 -06:00
dogfood-policy-updater-latest-safari.sh Update dogfood-policy-updater-latest-safari.sh (#38133) 2026-01-13 15:04:36 -06:00
dogfood-update-testing-qa-apps.sh Make dogfood update script executable (#35851) 2025-11-17 15:19:04 -06:00
filter-apps-json.sh Add workflows for validation on new FMAs only (#35888) 2025-11-24 15:00:27 -06:00
helm-check-expected.sh Add Helm chart (#250) 2021-02-01 15:46:01 -08:00
rclone-install.sh Added release-fleetd-base workflow. (#18194) 2024-04-29 11:51:40 -05:00
update_osquery_versions.py Include pre-releases when building osquery version list constant (#25089) 2025-01-02 11:38:15 -06:00