From b2b9d677c75d4e6ac991db60b9d92b7e5ae9c9da Mon Sep 17 00:00:00 2001 From: Eric Forte <119343520+eric-forte-elastic@users.noreply.github.com> Date: Tue, 16 Sep 2025 08:18:48 -0400 Subject: [PATCH] [Bug] Github Gist API Now Requires Auth (#5119) * Add headers to public call --- detection_rules/ghwrap.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/detection_rules/ghwrap.py b/detection_rules/ghwrap.py index 1f71cbbd3..aad7daf5a 100644 --- a/detection_rules/ghwrap.py +++ b/detection_rules/ghwrap.py @@ -109,7 +109,7 @@ def update_gist( # noqa: PLR0913 if pre_purge: # retrieve all existing file names which are not in the file_map and overwrite them to empty to delete files - response = requests.get(url, timeout=30) + response = requests.get(url, headers=headers, timeout=30) response.raise_for_status() data = response.json() files = list(data["files"]) diff --git a/pyproject.toml b/pyproject.toml index 4e6a06c16..fba7e4f95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "detection_rules" -version = "1.4.1" +version = "1.4.2" description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine." readme = "README.md" requires-python = ">=3.12"