Skip to content

Commit d0a0281

Browse files
authored
Merge pull request #17550 from ivanvc/release-3.5-add-govuln-github-workflow
[3.5] Add govuln GitHub workflow
2 parents 65c10bc + 67afad6 commit d0a0281

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/govuln.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Go Vulnerability Checker
3+
on: [push, pull_request]
4+
permissions: read-all
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
10+
- id: goversion
11+
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
12+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
13+
with:
14+
go-version: ${{ steps.goversion.outputs.goversion }}
15+
- run: date
16+
- run: |
17+
set -euo pipefail
18+
19+
go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./...

0 commit comments

Comments
 (0)