diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index 05dc9a5..579ccb7 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -62,7 +62,7 @@ jobs: SendSlackNotification: needs: BuildAndScan uses: ./.github/workflows/send-notification.yml - if: always() && (env.CVE_HIGH > 0 || env.CVE_CRITICAL > 0) + if: always() && (needs.BuildAndScan.outputs.CVE_HIGH > 0 || needs.BuildAndScan.outputs.CVE_CRITICAL > 0) with: CVE_CRITICAL: ${{needs.BuildAndScan.outputs.CVE_CRITICAL}} CVE_HIGH: ${{needs.BuildAndScan.outputs.CVE_HIGH}}