diff --git a/.github/workflows/builder_OVA.yaml b/.github/workflows/builder_OVA.yaml index ed8390c..09ac5b5 100644 --- a/.github/workflows/builder_OVA.yaml +++ b/.github/workflows/builder_OVA.yaml @@ -8,6 +8,10 @@ on: description: "ID used to identify the workflow uniquely." type: string required: false + WAZUH_VIRTUAL_MACHINES_REFERENCE: + description: 'Branch or tag of the wazuh-virtual-machines repository' + required: true + default: '4.10.0' WAZUH_INSTALLATION_ASSISTANT_REFERENCE: description: 'Branch or tag of the wazuh-installation-assistant repository' required: true @@ -83,8 +87,10 @@ jobs: - name: Install Ansible run: sudo apt-get update && sudo apt install -y python3 jq sshpass && python3 -m pip install --user ansible-core==2.16 && pip install pyyaml && ansible-galaxy collection install community.general - - name: Checkout code + - name: Checkout wazuh/wazuh-virtual-machines repository uses: actions/checkout@v4 + with: + ref: ${{ inputs.WAZUH_VIRTUAL_MACHINES_REFERENCE}} - name: Setting FILENAME var run: | diff --git a/.github/workflows/packages_builder_ami.yaml b/.github/workflows/packages_builder_ami.yaml index 3d23ef6..f85136f 100644 --- a/.github/workflows/packages_builder_ami.yaml +++ b/.github/workflows/packages_builder_ami.yaml @@ -8,6 +8,10 @@ on: description: "ID used to identify the workflow uniquely." type: string required: false + WAZUH_VIRTUAL_MACHINES_REFERENCE: + description: 'Branch or tag of the wazuh-virtual-machines repository' + required: true + default: '4.10.0' WAZUH_AUTOMATION_REFERENCE: description: 'Branch or tag of the wazuh-automation repository' required: true @@ -61,6 +65,8 @@ jobs: - name: Checkout wazuh/wazuh-virtual-machines repository uses: actions/checkout@v4 + with: + ref: ${{ inputs.WAZUH_VIRTUAL_MACHINES_REFERENCE}} - name: Configure aws credentials uses: aws-actions/configure-aws-credentials@v3