Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Disable Anchore scan without push (#1596)

Wouter Borneee4cd9832b8
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 84133b52e..5116da447 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -746,7 +746,7 @@ jobs:
${{ steps.manager-docker-command.outputs.value }}
- name: Scan manager docker image
- if: steps.manager-docker-command.outputs.value != ''
+ if: steps.manager-docker-command.outputs.pushRequired == 'true'
uses: anchore/scan-action@v3
id: manager-anchore-scan
with:
@@ -757,7 +757,7 @@ jobs:
- name: Upload Anchore scan SARIF report
if: |
!cancelled() &&
- steps.manager-docker-command.outputs.value != ''
+ steps.manager-docker-command.outputs.pushRequired == 'true'
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.manager-anchore-scan.outputs.sarif }}
@@ -765,7 +765,7 @@ jobs:
- name: Inspect Anchore scan SARIF report
if: |
!cancelled() &&
- steps.manager-docker-command.outputs.value != ''
+ steps.manager-docker-command.outputs.pushRequired == 'true'
run: cat ${{ steps.manager-anchore-scan.outputs.sarif }}
- name: Run maven publish command