This commit is contained in:
parent
13d3b2cef3
commit
1e946bdf2f
25
.gitea/workflows/security.yaml
Normal file
25
.gitea/workflows/security.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
name: "code scans"
|
||||
on: push #runs on pushes to any branch
|
||||
|
||||
jobs:
|
||||
scans:
|
||||
runs-on: smoke-test
|
||||
steps:
|
||||
- name: "clone code"
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: "install go"
|
||||
uses: https://code.jakeyoungdev.com/actions/install-go@master
|
||||
with:
|
||||
commands: |
|
||||
golang.org/x/vuln/cmd/govulncheck@latest
|
||||
|
||||
- name: "dependency and stdlib scan"
|
||||
uses: https://code.jakeyoungdev.com/actions/report-vulns@master
|
||||
with:
|
||||
manager: go
|
||||
|
||||
- name: "static code analysis"
|
||||
uses: securego/gosec@v2.22.3
|
||||
with:
|
||||
args: ./...
|
Loading…
x
Reference in New Issue
Block a user