Skip to content

Commit ba959f2

Browse files
authored
fix: Fixing leftover references to sha256 method (#4690)
* Fixing missed old method name usage * Patch version bump
1 parent fc1e614 commit ba959f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

detection_rules/devtools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def kibana_diff(rule_id, repo, branch, threads):
416416
else:
417417
rules = rules.filter(production_filter).id_map
418418

419-
repo_hashes = {r.id: r.contents.sha256(include_version=True) for r in rules.values()}
419+
repo_hashes = {r.id: r.contents.get_hash(include_version=True) for r in rules.values()}
420420

421421
kibana_rules = {r['rule_id']: r for r in get_kibana_rules(repo=repo, branch=branch, threads=threads).values()}
422422
kibana_hashes = {r['rule_id']: dict_hash(r) for r in kibana_rules.values()}

detection_rules/rule_loader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def compare_collections(self, other: 'RuleCollection'
571571
new_rules[rule.id] = rule
572572
else:
573573
pre_rule = self.id_map[rule.id]
574-
if rule.contents.sha256() != pre_rule.contents.sha256():
574+
if rule.contents.get_hash() != pre_rule.contents.get_hash():
575575
changed_rules[rule.id] = rule
576576

577577
for rule in other.deprecated:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "detection_rules"
3-
version = "1.1.4"
3+
version = "1.1.5"
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)