Run Gosec and ZAP Scan #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Gosec and ZAP Scan | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
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: Run Gosec Security Scanner | ||
id: GoSec Scan | ||
Check failure on line 24 in .github/workflows/gosec.yml GitHub Actions / Run Gosec and ZAP ScanInvalid workflow file
|
||
uses: securego/gosec@master | ||
with: | ||
args: '-no-fail -fmt sarif -out results.sarif ./...' | ||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: results.sarif |