diff --git a/.github/workflows/trivy-dashboard-4-4.yml b/.github/workflows/trivy-dashboard.yml similarity index 94% rename from .github/workflows/trivy-dashboard-4-4.yml rename to .github/workflows/trivy-dashboard.yml index 863f4b03..a9c04a23 100644 --- a/.github/workflows/trivy-dashboard-4-4.yml +++ b/.github/workflows/trivy-dashboard.yml @@ -31,12 +31,13 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - with: { ref: v4.4.5 } - name: Installing dependencies run: | sudo apt-get update sudo apt-get install -y jq + latest=$(curl -s "https://api.github.com/repos/wazuh/wazuh-docker/releases/latest" | jq -r '.tag_name') + git checkout $latest - name: Build Wazuh images run: build-docker-images/build-images.sh diff --git a/.github/workflows/trivy-indexer-4-4.yml b/.github/workflows/trivy-indexer.yml similarity index 94% rename from .github/workflows/trivy-indexer-4-4.yml rename to .github/workflows/trivy-indexer.yml index 9baec82c..2a5b182a 100644 --- a/.github/workflows/trivy-indexer-4-4.yml +++ b/.github/workflows/trivy-indexer.yml @@ -31,12 +31,13 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - with: { ref: v4.4.5 } - name: Installing dependencies run: | sudo apt-get update sudo apt-get install -y jq + latest=$(curl -s "https://api.github.com/repos/wazuh/wazuh-docker/releases/latest" | jq -r '.tag_name') + git checkout $latest - name: Build Wazuh images run: build-docker-images/build-images.sh diff --git a/.github/workflows/trivy-manager-4-4.yml b/.github/workflows/trivy-manager.yml similarity index 94% rename from .github/workflows/trivy-manager-4-4.yml rename to .github/workflows/trivy-manager.yml index d8631089..8b1dc659 100644 --- a/.github/workflows/trivy-manager-4-4.yml +++ b/.github/workflows/trivy-manager.yml @@ -31,12 +31,13 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - with: { ref: v4.4.5 } - name: Installing dependencies run: | sudo apt-get update sudo apt-get install -y jq + latest=$(curl -s "https://api.github.com/repos/wazuh/wazuh-docker/releases/latest" | jq -r '.tag_name') + git checkout $latest - name: Build Wazuh images run: build-docker-images/build-images.sh