From 9e14b5cb4d798e0c802832bb145c9d9d61b5a1ff Mon Sep 17 00:00:00 2001 From: Ankush Jain <91221068+ankush-jain-akto@users.noreply.github.com> Date: Thu, 19 Oct 2023 11:45:47 -0700 Subject: [PATCH] Update devsecops.yml --- .github/workflows/devsecops.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/devsecops.yml b/.github/workflows/devsecops.yml index a8beba1dd8d..05d11c25355 100644 --- a/.github/workflows/devsecops.yml +++ b/.github/workflows/devsecops.yml @@ -14,14 +14,6 @@ on: jobs: - terrascan: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: terrascan - run: docker run --rm -t -v "${PWD}:/pwd" tenable/terrascan scan -i cft -d /pwd/aws - - secret-leaks: runs-on: ubuntu-latest steps: @@ -50,6 +42,14 @@ jobs: - name: "Execute unit tests and smoke tests" run: echo "Test complete" + terrascan: + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v3 + - name: terrascan + run: docker run --rm -t -v "${PWD}:/pwd" tenable/terrascan scan -i cft -d /pwd/aws >> $GITHUB_STEP_SUMMARY + package: needs: terrascan runs-on: ubuntu-latest