From 9c341ee69a8dc8706531e4b10931527e2f6a124f Mon Sep 17 00:00:00 2001
From: Paul Abel
Date: Wed, 11 Dec 2024 17:13:54 +0000
Subject: [PATCH] ensure tag exists before scanning
---
.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 900487bbc8..07fd9b2e1e 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