Skip to content

govulncheck

govulncheck #128

Workflow file for this run

name: govulncheck
on:
push:
paths:
- go.sum
- go.mod
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
jobs:
govulncheck:
name: govulncheck
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install Golang
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: "go.mod"
check-latest: true # Always check for the latest patch release
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y \
pip \
build-essential \
libelf-dev \
clang \
llvm \
libbpf-dev
pip install pre-commit
- name: Generate eBPF code
run: make generate-ebpf
- name: Run govulncheck
env:
GOVULNCHECK_VERSION: d1f380186385b4f64e00313f31743df8e4b89a77 # v1.1.4
run: |
go install golang.org/x/vuln/cmd/govulncheck@${{ env.GOVULNCHECK_VERSION }}
govulncheck -C . -format text ./...