Skip to content

Run Gosec and ZAP Scan #9

Run Gosec and ZAP Scan

Run Gosec and ZAP Scan #9

Workflow file for this run

name: Run Gosec and ZAP Scan
on:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
id: checkout
uses: actions/checkout@v3
- name: Generate SBOM
id: sbom
uses: anchore/sbom-action@v0
- name: Run Gosec Security Scanner
id: gosec
uses: securego/gosec@master
with:
args: ./...
- 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