This PR aims to move the Vulnerability Detection template vd_states_template.json from /var/ossec/queue/indexer/ to a templates folder located in /var/ossec/ and update its references.
root@ubuntu:/# ls /var/ossec/
active-response agentless api backup bin etc framework integrations lib logs queue ruleset stats templates tmp var wodles
root@ubuntu:/# ls /var/ossec/templates/
vd_states_template.json
Extra changes
The workflow build-rpm-packages.yml was modified in a way that it takes the wazuh build branch with the same name as the current PR. If there is no branch, then it will take the name it was using before.
This change was necessary because the test was using a branch without the changes needed by this PR.
Description
This PR aims to move the Vulnerability Detection template
vd_states_template.json
from/var/ossec/queue/indexer/
to atemplates
folder located in/var/ossec/
and update its references.Related PR for Wazuh-Wazuh: https://github.com/wazuh/wazuh/pull/21985
Logs/Alerts example
Extra changes
The workflow
build-rpm-packages.yml
was modified in a way that it takes the wazuh build branch with the same name as the current PR. If there is no branch, then it will take the name it was using before.This change was necessary because the test was using a branch without the changes needed by this PR.
Before: https://github.com/wazuh/wazuh-packages/actions/runs/7976772784/job/21778103562?pr=2836
After: https://github.com/wazuh/wazuh-packages/actions/runs/7977777570/job/21781434613?pr=2836
Tests
%files
section is correctly updated if necessary