mirror of
https://github.com/wazuh/wazuh-indexer-plugins.git
synced 2025-12-10 14:32:28 -06:00
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:
parent
ad30d6609f
commit
fc26572a46
@ -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)
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user