forked from wazuh/wazuh-docker
Merge pull request #2399 from wazuh/change/3262-avoid-running-gh-workflows-on-draft-prs
Forbid pr_check workflow execution in draft PRs
This commit is contained in:
@@ -4,6 +4,7 @@ permissions:
|
|||||||
id-token: write
|
id-token: write
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
docker_reference:
|
docker_reference:
|
||||||
@@ -14,6 +15,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
prepare-variables:
|
prepare-variables:
|
||||||
|
if: ${{ !github.event.pull_request.draft }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
WAZUH_VERSION: ${{ steps.dotenv.outputs.WAZUH_VERSION }}
|
WAZUH_VERSION: ${{ steps.dotenv.outputs.WAZUH_VERSION }}
|
||||||
@@ -88,7 +90,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04, ubuntu-22.04-arm]
|
os: [ubuntu-22.04, ubuntu-22.04-arm]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
needs: [prepare-variables, Execute-Goss-tests, build-images]
|
needs: [prepare-variables, Execute-Goss-tests]
|
||||||
env:
|
env:
|
||||||
WAZUH_IMAGE_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }}
|
WAZUH_IMAGE_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }}
|
||||||
WAZUH_MINOR_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_MINOR_VERSION }}
|
WAZUH_MINOR_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_MINOR_VERSION }}
|
||||||
@@ -363,7 +365,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04, ubuntu-22.04-arm]
|
os: [ubuntu-22.04, ubuntu-22.04-arm]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
needs: [prepare-variables, Execute-Goss-tests, build-images]
|
needs: [prepare-variables, Execute-Goss-tests]
|
||||||
env:
|
env:
|
||||||
WAZUH_IMAGE_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }}
|
WAZUH_IMAGE_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }}
|
||||||
WAZUH_MINOR_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_MINOR_VERSION }}
|
WAZUH_MINOR_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_MINOR_VERSION }}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
### Changed
|
### 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))
|
- 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))
|
- 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))
|
- Image build process update ([#2358](https://github.com/wazuh/wazuh-docker/pull/2358))
|
||||||
|
|||||||
Reference in New Issue
Block a user