From 8bac944a92b73c1bdd7679dacc2490b3cc6bca2d Mon Sep 17 00:00:00 2001 From: Enrique Araque Date: Thu, 14 May 2026 15:29:33 +0200 Subject: [PATCH 1/3] forbid pr check workflow execution in draft prs --- .github/workflows/5_pr_check.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/5_pr_check.yml b/.github/workflows/5_pr_check.yml index 797aecbc..62e27fdf 100644 --- a/.github/workflows/5_pr_check.yml +++ b/.github/workflows/5_pr_check.yml @@ -4,6 +4,7 @@ permissions: id-token: write on: pull_request: + types: [opened, synchronize, reopened, ready_for_review] workflow_dispatch: inputs: docker_reference: @@ -14,6 +15,7 @@ on: jobs: prepare-variables: + if: ${{ !github.event.pull_request.draft }} runs-on: ubuntu-latest outputs: WAZUH_VERSION: ${{ steps.dotenv.outputs.WAZUH_VERSION }} @@ -51,6 +53,7 @@ jobs: dev: true Execute-Goss-tests: + if: needs.build-images.result != 'skipped' needs: [prepare-variables, build-images] runs-on: ubuntu-22.04 env: @@ -83,12 +86,13 @@ jobs: check-single-node: name: Check single node on ${{ matrix.os }} + if: needs.Execute-Goss-tests.result != 'skipped' runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-22.04, ubuntu-22.04-arm] fail-fast: false - needs: [prepare-variables, Execute-Goss-tests, build-images] + needs: [prepare-variables, Execute-Goss-tests] env: WAZUH_IMAGE_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }} WAZUH_MINOR_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_MINOR_VERSION }} @@ -358,12 +362,13 @@ jobs: check-multi-node: name: Check multi node on ${{ matrix.os }} + if: needs.Execute-Goss-tests.result != 'skipped' runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-22.04, ubuntu-22.04-arm] fail-fast: false - needs: [prepare-variables, Execute-Goss-tests, build-images] + needs: [prepare-variables, Execute-Goss-tests] env: WAZUH_IMAGE_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }} WAZUH_MINOR_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_MINOR_VERSION }} From bd9286b225d6c75fb1a45a75f06f064dc4be6cd7 Mon Sep 17 00:00:00 2001 From: Enrique Araque Date: Thu, 14 May 2026 15:39:54 +0200 Subject: [PATCH 2/3] remove unnecesary conditions --- .github/workflows/5_pr_check.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/5_pr_check.yml b/.github/workflows/5_pr_check.yml index 62e27fdf..b47934c3 100644 --- a/.github/workflows/5_pr_check.yml +++ b/.github/workflows/5_pr_check.yml @@ -53,7 +53,6 @@ jobs: dev: true Execute-Goss-tests: - if: needs.build-images.result != 'skipped' needs: [prepare-variables, build-images] runs-on: ubuntu-22.04 env: @@ -86,7 +85,6 @@ jobs: check-single-node: name: Check single node on ${{ matrix.os }} - if: needs.Execute-Goss-tests.result != 'skipped' runs-on: ${{ matrix.os }} strategy: matrix: @@ -362,7 +360,6 @@ jobs: check-multi-node: name: Check multi node on ${{ matrix.os }} - if: needs.Execute-Goss-tests.result != 'skipped' runs-on: ${{ matrix.os }} strategy: matrix: From 2fd6f5aeb79c89ea751efbbe3fcde440980746da Mon Sep 17 00:00:00 2001 From: Enrique Araque Date: Thu, 14 May 2026 15:42:43 +0200 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b132c301..7753558e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file. ### Changed +- Forbid pr_check workflow execution in draft PRs ([#2399](https://github.com/wazuh/wazuh-docker/pull/2399)) - Unification of user UID and GID ([#2393](https://github.com/wazuh/wazuh-docker/pull/2393)) - Add Wazuh indexer engine start on entrypoint ([#2390](https://github.com/wazuh/wazuh-docker/pull/2390)) - Image build process update ([#2358](https://github.com/wazuh/wazuh-docker/pull/2358))