Skip to content

scan-cve

scan-cve #166

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
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # 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