Skip to content

Wazuh ruleset patch win defender #1

Wazuh ruleset patch win defender

Wazuh ruleset patch win defender #1

name: Running RTR. Module syscollector and its dependencies for agent/winagent targets
on:
pull_request:
paths:
- "src/ci/**"
- "src/build.py"
- "src/data_provider/**"
- "src/shared_modules/**"
- "src/wazuh_modules/syscollector/**"
- "src/Makefile"
- ".github/workflows/rtr_syscollector.yml"
- ".github/actions/**"
jobs:
rtr:
strategy:
fail-fast: false
matrix:
module: [wazuh_modules/syscollector, shared_modules/dbsync, shared_modules/rsync, shared_modules/utils, data_provider]
target: [agent, winagent]
# We don't use ubuntu-latest because the install_build_deps action adds a fixed repository for Wine
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: "Install dependencies"
uses: ./.github/actions/install_build_deps
with:
target: ${{ matrix.target }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: ".github/workflows/.python-version"
architecture: x64
- name: Run RTR for module ${{ matrix.module }} and target ${{ matrix.target }}
run: |
cd src/
python build.py --target ${{ matrix.target }} --readytoreview ${{ matrix.module }}
- name: Creating a valid artifact name
if: always()
run: |
name="${{ matrix.module }}"
name=$(echo $name | sed -e 's*/*-*g')
echo "ARTIFACT_NAME=$name" >> $GITHUB_ENV
- name: Uploading coverage report
if: always()
uses: actions/upload-artifact@v3
with:
name: coverage_report ${{ env.ARTIFACT_NAME }} ${{ matrix.target }}
path: ./**/coverage_report/**