Skip to content

Commit b2b9d67

Browse files
[Bug] Github Gist API Now Requires Auth (#5119)
* Add headers to public call
1 parent 4476ac5 commit b2b9d67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

detection_rules/ghwrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def update_gist( # noqa: PLR0913
109109

110110
if pre_purge:
111111
# retrieve all existing file names which are not in the file_map and overwrite them to empty to delete files
112-
response = requests.get(url, timeout=30)
112+
response = requests.get(url, headers=headers, timeout=30)
113113
response.raise_for_status()
114114
data = response.json()
115115
files = list(data["files"])

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "detection_rules"
3-
version = "1.4.1"
3+
version = "1.4.2"
44
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."
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)