You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While doing the security docs update for pre-built detection rules v8.3.0 I received the following error after running python prebuilt-rules-scripts/generate.py generate 8.3.0.
KeyError: 'duplicate_old_file'
Tracing this back, it appears to reference line 543 of generate.py
if 'pre_name' in i:
if i['pre_name'] != None:
file_text = file_text + "* Rule name changed from: " + i['pre_name'] + "\n"
rule_name_changed = True
if i['updated'] == package_release:
rule_link_file = rule_link + ".asciidoc"
files_with_updated_rule_name[rule_link_file] = i["duplicate_old_file"]
After debugging, it appears we can apply a quick fix as such to attempt this key reference and if not reference pre_name instead which is within the same dictionary object.
After applying the fix locally, the run was successful.
In addition to this, I added launch.json to the gitignore file to ignore the python debug configuration file for vscode so it does not get committed.
The text was updated successfully, but these errors were encountered:
Description:
While doing the security docs update for pre-built detection rules v8.3.0 I received the following error after running
python prebuilt-rules-scripts/generate.py generate 8.3.0
.Tracing this back, it appears to reference line 543 of
generate.py
After debugging, it appears we can apply a quick fix as such to attempt this key reference and if not reference
pre_name
instead which is within the same dictionary object.After applying the fix locally, the run was successful.
In addition to this, I added
launch.json
to the gitignore file to ignore the python debug configuration file for vscode so it does not get committed.The text was updated successfully, but these errors were encountered: