Skip to content

Commit d006576

Browse files
TMHSDigitalclaude
andcommitted
Run govulncheck weekly on the release and Docker builder toolchains (#485)
govulncheck ran only on push and pull request, and Dependabot is gone, so a Go standard-library advisory could go unreported through a quiet week. The new Vulncheck workflow runs it every Monday and on workflow_dispatch, against stable (what releases are built with) and against the Go version pinned in the Dockerfile's builder, which can fall behind the binaries'. Refs #485 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 2f823a2 commit d006576

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

‎.github/workflows/vulncheck.yml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Vulncheck
2+
3+
# govulncheck also runs on every push, but a Go standard-library advisory
4+
# can land in a quiet week, and with Dependabot gone the pins are bumped by
5+
# hand (#485). This checks weekly, and on demand, against the toolchain
6+
# releases are built with and against the Docker image's builder, whose Go
7+
# version is pinned in the Dockerfile and can fall behind.
8+
on:
9+
schedule:
10+
- cron: '0 6 * * 1'
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
govulncheck:
18+
timeout-minutes: 15
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
toolchain: [ stable, docker-builder ]
24+
steps:
25+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
26+
27+
# The Go version of the Dockerfile's golang:<version>-alpine builder.
28+
- name: Builder Go version
29+
id: builder
30+
shell: bash
31+
run: |
32+
v=$(sed -nE 's/^FROM .*golang:([0-9.]+)-alpine.*/\1/p' Dockerfile | head -n1)
33+
test -n "$v" || { echo "::error::no golang:<version>-alpine builder in the Dockerfile"; exit 1; }
34+
echo "version=$v" >> "$GITHUB_OUTPUT"
35+
36+
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7
37+
with:
38+
go-version: ${{ matrix.toolchain == 'stable' && 'stable' || steps.builder.outputs.version }}
39+
check-latest: ${{ matrix.toolchain == 'stable' }}
40+
41+
- name: Run govulncheck
42+
env:
43+
GOTOOLCHAIN: local
44+
run: go run golang.org/x/vuln/cmd/govulncheck@v1.9.0 ./...

‎docs/DEVELOPER_GUIDE.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ subenum/
6666
│ │ ├── codeql.yml # Weekly CodeQL security analysis
6767
│ │ ├── devcontainer.yml # Builds the dev container and runs checks in it
6868
│ │ ├── fuzz.yml # Weekly (and on-demand) run of every fuzz target
69-
│ │ └── pages.yml # GitHub Pages deployment
69+
│ │ ├── pages.yml # GitHub Pages deployment
70+
│ │ └── vulncheck.yml # Weekly govulncheck on the release and Docker builder toolchains
7071
│ ├── SECURITY.md # Vulnerability disclosure policy
7172
│ ├── ISSUE_TEMPLATE/
7273
│ │ ├── bug_report.yml # Structured bug report form

0 commit comments

Comments
 (0)