Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Vulnerability scan

# Pull requests already run govulncheck in ci.yml. This weekly run on main
# also catches advisories published while no pull request is open.

on:
schedule:
- cron: "23 8 * * 1"
workflow_dispatch:

permissions:
contents: read

jobs:
govulncheck:
name: Check Go vulnerabilities
runs-on: ubuntu-26.04
timeout-minutes: 15
env:
GOTOOLCHAIN: local
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
cache: true
# Keep the govulncheck version in step with ci.yml.
- name: Vulnerability scan
run: |
go install golang.org/x/vuln/cmd/govulncheck@v1.8.0
govulncheck ./...
4 changes: 3 additions & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ go build ./...
```

[CI](../.github/workflows/ci.yml) also runs Staticcheck and Govulncheck, provisions
the SDK fixtures below, and saves test artifacts. Import boundaries are checked
the SDK fixtures below, and saves test artifacts.
[Vulnerability scan](../.github/workflows/security.yml) also runs Govulncheck on
`main` every Monday and on manual dispatch. Import boundaries are checked
by `TestImportLattice` in [cmd/livepeer/imports_test.go](../cmd/livepeer/imports_test.go).

## SDK integration fixtures
Expand Down
Loading