From 1d8332725f2f5ce90140e2002219b44664a9a49d Mon Sep 17 00:00:00 2001 From: vcerenu Date: Fri, 18 Aug 2023 15:23:12 -0300 Subject: [PATCH] add fetch --- .github/workflows/trivy-dashboard.yml | 1 + .github/workflows/trivy-indexer.yml | 1 + .github/workflows/trivy-manager.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/trivy-dashboard.yml b/.github/workflows/trivy-dashboard.yml index 5f247878..8bc2decf 100644 --- a/.github/workflows/trivy-dashboard.yml +++ b/.github/workflows/trivy-dashboard.yml @@ -40,6 +40,7 @@ jobs: - name: Checkout latest tag run: | latest=$(curl -s "https://api.github.com/repos/wazuh/wazuh-docker/releases/latest" | jq -r '.tag_name') + git fetch origin git checkout $latest - name: Build Wazuh images diff --git a/.github/workflows/trivy-indexer.yml b/.github/workflows/trivy-indexer.yml index aacb42b9..3582e21d 100644 --- a/.github/workflows/trivy-indexer.yml +++ b/.github/workflows/trivy-indexer.yml @@ -40,6 +40,7 @@ jobs: - name: Checkout latest tag run: | latest=$(curl -s "https://api.github.com/repos/wazuh/wazuh-docker/releases/latest" | jq -r '.tag_name') + git fetch origin git checkout $latest - name: Build Wazuh images diff --git a/.github/workflows/trivy-manager.yml b/.github/workflows/trivy-manager.yml index 89db7dc7..18bdf1b8 100644 --- a/.github/workflows/trivy-manager.yml +++ b/.github/workflows/trivy-manager.yml @@ -40,6 +40,7 @@ jobs: - name: Checkout latest tag run: | latest=$(curl -s "https://api.github.com/repos/wazuh/wazuh-docker/releases/latest" | jq -r '.tag_name') + git fetch origin git checkout $latest - name: Build Wazuh images