Skip to content

Commit

Permalink
Update gosec.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akindemirsec authored Apr 3, 2024
1 parent 7416929 commit 1e3ba0c
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1e3ba0c

Please sign in to comment.