From a7404e00d1d042270c1a9b445a30e75725f9d962 Mon Sep 17 00:00:00 2001 From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Date: Mon, 24 Apr 2023 13:21:35 +1200 Subject: [PATCH] fix(ci/security): intepret matrix summary as string not shell command (#8836) --- .github/workflows/nightly-security-scan.yml | 12 ++++++------ .github/workflows/pr-security.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/nightly-security-scan.yml b/.github/workflows/nightly-security-scan.yml index a80de4370..3abe1299b 100644 --- a/.github/workflows/nightly-security-scan.yml +++ b/.github/workflows/nightly-security-scan.yml @@ -146,12 +146,12 @@ jobs: steps: - name: display the results of js, Go, and image scan run: | - echo ${{ matrix.js.status }} - echo ${{ matrix.go.status }} - echo ${{ matrix.image.status }} - echo ${{ matrix.js.summary }} - echo ${{ matrix.go.summary }} - echo ${{ matrix.image.summary }} + echo "${{ matrix.js.status }}" + echo "${{ matrix.go.status }}" + echo "${{ matrix.image.status }}" + echo "${{ matrix.js.summary }}" + echo "${{ matrix.go.summary }}" + echo "${{ matrix.image.summary }}" - name: send message to Slack if: >- diff --git a/.github/workflows/pr-security.yml b/.github/workflows/pr-security.yml index 51e41737e..026caca75 100644 --- a/.github/workflows/pr-security.yml +++ b/.github/workflows/pr-security.yml @@ -230,10 +230,10 @@ jobs: matrix.godiff.status == 'failure' || matrix.imagediff.status == 'failure' run: | - echo ${{ matrix.jsdiff.status }} - echo ${{ matrix.godiff.status }} - echo ${{ matrix.imagediff.status }} - echo ${{ matrix.jsdiff.summary }} - echo ${{ matrix.godiff.summary }} - echo ${{ matrix.imagediff.summary }} + echo "${{ matrix.jsdiff.status }}" + echo "${{ matrix.godiff.status }}" + echo "${{ matrix.imagediff.status }}" + echo "${{ matrix.jsdiff.summary }}" + echo "${{ matrix.godiff.summary }}" + echo "${{ matrix.imagediff.summary }}" exit 1