From df270234b5783b6b73733f6366d892b01394c11b Mon Sep 17 00:00:00 2001 From: holomekc <30546982+holomekc@users.noreply.github.com> Date: Wed, 27 Dec 2023 02:08:04 +0100 Subject: [PATCH] -tests scanning --- .github/workflows/docker-image-scan.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image-scan.yml b/.github/workflows/docker-image-scan.yml index 0fa77cfd45..528cca2c2e 100644 --- a/.github/workflows/docker-image-scan.yml +++ b/.github/workflows/docker-image-scan.yml @@ -8,6 +8,7 @@ jobs: runs-on: ubuntu-latest outputs: result: ${{ steps.trivy-result.outputs.result }} + version: ${{ steps.last_release.outputs.id }} steps: - name: Checkout code uses: actions/checkout@v3 @@ -72,7 +73,7 @@ jobs: if: ${{ needs.scan.outputs.result == 0 }} uses: ./.github/workflows/docker-release.yml with: - version: 3.3.1.4 + version: ${{ needs.scan.outputs.version == 0 }} secrets: dockerUsername: ${{ secrets.DOCKERHUB_USERNAME }} dockerToken: ${{ secrets.DOCKERHUB_TOKEN }}