Fix WCS generator modules detection issues (#620)

* Update WCS generator to correctly detect all the modified modules

* Update CHANGELOG

* Simplify generate_schema fix solution
This commit is contained in:
Kevin Ledesma 2025-10-29 12:36:31 -03:00 committed by GitHub
parent ad30d6609f
commit fc26572a46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Fix permissions for job 'call-build-workflow' [(#492)](https://github.com/wazuh/wazuh-indexer-plugins/pull/492)
- Update event generators [(#505)](https://github.com/wazuh/wazuh-indexer-plugins/pull/505)
- Update `DEVELOPER_GUIDE.md` to use JDK 21 [(#538)](https://github.com/wazuh/wazuh-indexer-plugins/pull/538)
- Fix WCS generator modules detection issues [(#620)](https://github.com/wazuh/wazuh-indexer-plugins/pull/620)
### Security
- Reduce risk of GITHUB_TOKEN exposure [(#484)](https://github.com/wazuh/wazuh-indexer-plugins/pull/484)

View File

@ -54,7 +54,7 @@ function detect_modified_modules() {
for file in $modified_files; do
if [[ $file == ecs/state* && ($file == *.yml || $file == *.json) ]]; then
ecs_module=$(echo "$file" | cut -d'/' -f2)
if [[ ! " ${modified_modules[*]} " =~ ${ecs_module} ]]; then
if [[ ! " ${modified_modules[*]} " == ${ecs_module} ]]; then
# Ignore the template folder "stateless-template" from modified modules
if [[ "$ecs_module" != "stateless-template" ]]; then
modified_modules+=("$ecs_module")