Include pre-releases when building osquery version list constant (#25089)

Also updates said constant via this script to include 5.15.0. Idea for
this is that including pre-releases as they're published ensures that by
the time the corresponding Fleet release ships we have a current list,
without having to cherry-pick these updates.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Manual QA for all new/changed functionality
This commit is contained in:
Ian Littman
2025-01-02 11:38:15 -06:00
committed by GitHub
parent 425182c896
commit bbc35cb76b
3 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -14,9 +14,8 @@ def fetch_osquery_versions():
resp = conn.getresponse()
content = resp.read()
conn.close()
releases = json.loads(content.decode('utf-8'))
return [release['tag_name'] for release in releases if not release['prerelease']]
return [release['tag_name'] for release in json.loads(content.decode('utf-8'))]
def update_min_osquery_version_options(new_versions):
with open(FILE_PATH, 'r') as file: