Move Vulnerability Detection Template to Templates Folder #2836
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: wazuh/wazuh#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