[Bug] Github Gist API Now Requires Auth (#5119)
* Add headers to public call
This commit is contained in:
@@ -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"])
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user