-
-
Notifications
You must be signed in to change notification settings - Fork 243
44 lines (43 loc) · 1.01 KB
/
cve-scanner.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Go Source Scanners
on:
push:
branches:
- "master"
- "v*.*.*"
- "v*"
tags:
- "v*.*.*"
pull_request:
branches:
- "master"
- "v*.*.*"
- "v*"
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"