Skip to content

scan-cve

scan-cve #25

Workflow file for this run

name: scan-cve
on:
workflow_dispatch:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
schedule:
- cron: "03 */24 * * *"
permissions:
contents: read
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version: '1.23'
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run govulncheck for project
run: govulncheck -show verbose -scan module
- name: Build binary
run: make build-via-docker
- name: Run govulncheck for binary
run: govulncheck -mode=binary -show verbose -scan module ./ptcpdump