Skip to content

Add a workflow to enforce new docs redirects #450

Add a workflow to enforce new docs redirects

Add a workflow to enforce new docs redirects #450

Workflow file for this run

# https://go.dev/blog/vuln
# https://vuln.go.dev/
# https://go.dev/security/vuln/
name: govulncheck
on:
pull_request:
branches:
- main
workflow_call:
jobs:
govulncheck:
name: govulncheck
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: repo
submodules: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
check-latest: true
- name: govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
while IFS= read -r -d '' _mod; do
pushd "$(dirname "$_mod")" || exit 1
govulncheck ./...
popd || exit 1
done <<< "$(find . -type f -name 'go.mod' -print0)"