Skip to content

Commit

Permalink
Merge pull request #17550 from ivanvc/release-3.5-add-govuln-github-w…
Browse files Browse the repository at this point in the history
…orkflow

[3.5] Add govuln GitHub workflow
  • Loading branch information
ahrtr authored Mar 8, 2024
2 parents 65c10bc + 67afad6 commit d0a0281
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/govuln.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Go Vulnerability Checker
on: [push, pull_request]
permissions: read-all
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ steps.goversion.outputs.goversion }}
- run: date
- run: |
set -euo pipefail
go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./...

0 comments on commit d0a0281

Please sign in to comment.