Skip to content

Commit

Permalink
feat: introduce cve scanners (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonsthere authored Jun 11, 2024
1 parent 058eebd commit 5219810
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/cve-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Go Source Scanners
on:
push:
branches:
- "master"
tags:
- "v*.*.*"
pull_request:
branches:
- "master"

jobs:
scanners:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Env
id: vars
shell: bash
run: |
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> "${GITHUB_ENV}"
- name: Run Gosec Security Scanner
continue-on-error: true
uses: securego/gosec@master
with:
args: ./...
- name: Run Govulncheck Scanner
continue-on-error: true
uses: golang/govulncheck-action@v1
with:
go-package: ./...
go-version-input: "1.22"
- name: Run Trivy vulnerability scanner in repo mode
continue-on-error: true
uses: aquasecurity/trivy-action@master
with:
scan-type: "fs"
ignore-unfixed: true
format: "json"

0 comments on commit 5219810

Please sign in to comment.