From 1e3ba0c7d39a160ec1272631aadccf897b783a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ak=C4=B1n=20Demir?= <128565483+GrimezSec@users.noreply.github.com> Date: Wed, 3 Apr 2024 23:08:58 +0300 Subject: [PATCH] Update gosec.yml --- .github/workflows/gosec.yml | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/gosec.yml b/.github/workflows/gosec.yml index 6830897..84f1e4d 100644 --- a/.github/workflows/gosec.yml +++ b/.github/workflows/gosec.yml @@ -7,34 +7,21 @@ jobs: env: GO111MODULE: on steps: + - name: Set up Nodejs + uses: actions/setup-node@v3 + with: + node-version: 20 + - name: Checkout Source id: checkout uses: actions/checkout@v3 - name: Generate SBOM id: sbom - uses: anchore/sbom-action@v0 - - - name: Start Application - id: start-app - run: blackdagger -server - - - name: Wait for Application to Start - id: wait-app - run: sleep 10 - - - name: ZAP Full Scan - id: zap-scan - uses: zaproxy/action-full-scan@v0.10.0 - with: - target: http://localhost:8080 + uses: anchore/sbom-action@v0 - name: Run Gosec Security Scanner id: gosec uses: securego/gosec@master with: args: ./... - - - name: Check Gosec Result - if: steps.gosec.outcome == 'failure' - run: exit 0