From b6817fa3476d20ec16dcec9a7e1327974007e0ca Mon Sep 17 00:00:00 2001 From: mutao Date: Thu, 21 Dec 2023 18:17:05 +0900 Subject: [PATCH] =?UTF-8?q?mod:=20=E3=82=B9=E3=82=AD=E3=83=A3=E3=83=B3?= =?UTF-8?q?=E5=AF=BE=E8=B1=A1=E3=81=AE=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF?= =?UTF-8?q?=E3=83=88=E3=83=AA=E3=81=8C=E5=AD=98=E5=9C=A8=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=81=8B=E3=81=A9=E3=81=86=E3=81=8B=E3=81=AE=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E5=88=86=E5=B2=90=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/secrets-scan.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/secrets-scan.yaml b/.github/workflows/secrets-scan.yaml index 77744d1..82a11fd 100644 --- a/.github/workflows/secrets-scan.yaml +++ b/.github/workflows/secrets-scan.yaml @@ -38,6 +38,15 @@ jobs: with: ref: ${{ github.head_ref }} + - name: Check if workdir exists + id: check + run: | + if [ -d "${{ matrix.workdir }}" ]; then + echo "exists=true" >> $GITHUB_OUTPUT + else + echo "exists=false" >> $GITHUB_OUTPUT + fi + - name: Run Aqua Security Trivy uses: aquasecurity/trivy-action@0.15.0 with: @@ -47,6 +56,7 @@ jobs: scanners: secret output: trivy.txt exit-code: 1 + if: steps.check.outputs.exists == 'true' - name: Post PR comments if: failure()