better-setup-govulncheck v1: pinned go install

This commit is contained in:
2026-10-31 11:07:05 +02:00
commit 1d67a42dac
2 changed files with 22 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# better-setup-govulncheck
Pinned `golang.org/x/vuln/cmd/govulncheck` via `go install` (run it after better-setup-go).
```yaml
- uses: https://git.madapes.com/actions/better-setup-govulncheck@v1
with: { version: "v1.9.0" }
```
+14
View File
@@ -0,0 +1,14 @@
name: better-setup-govulncheck
description: Install a pinned golang.org/x/vuln govulncheck binary via go install (requires Go on PATH) — no package manager needed, Forgejo/act runner safe.
inputs:
version:
description: Exact golang.org/x/vuln version (vX.Y.Z).
required: true
runs:
using: composite
steps:
- shell: bash
run: |
set -euo pipefail
GOBIN=/usr/local/bin go install "golang.org/x/vuln/cmd/govulncheck@${{ inputs.version }}"
govulncheck -version 2>/dev/null | head -2