From 78cb74187a4fa8be322b1fc446a0ad202d7c9dad Mon Sep 17 00:00:00 2001 From: nginx-bot <68849795+nginx-bot@users.noreply.github.com> Date: Thu, 12 Dec 2024 01:34:27 -0800 Subject: [PATCH] [cherry-pick] ensure tag exists before scanning (#6962) --- .github/workflows/image-promotion.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/image-promotion.yml b/.github/workflows/image-promotion.yml index 900487bbc..07fd9b2e1 100644 --- a/.github/workflows/image-promotion.yml +++ b/.github/workflows/image-promotion.yml @@ -385,7 +385,7 @@ jobs: scan-docker-oss: name: Scan ${{ matrix.image }}-${{ matrix.target }} runs-on: ubuntu-24.04 - needs: [checks] + needs: [checks, tag-candidate] permissions: contents: read id-token: write @@ -474,7 +474,7 @@ jobs: scan-docker-plus: name: Scan ${{ matrix.image }}-${{ matrix.target }} runs-on: ubuntu-24.04 - needs: [checks] + needs: [checks, tag-candidate] permissions: contents: read id-token: write @@ -563,7 +563,7 @@ jobs: scan-docker-nap: name: Scan ${{ matrix.image }}-${{ matrix.target }}-${{ matrix.nap_modules }} runs-on: ubuntu-24.04 - needs: [checks] + needs: [checks, tag-candidate] permissions: contents: read id-token: write