Skip to content

Commit

Permalink
gh: add govulncheck
Browse files Browse the repository at this point in the history
Fixes #599
  • Loading branch information
mmatczuk committed Dec 14, 2023
1 parent 857c258 commit 84988d8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Vulnerability check

on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- 'go.mod'
- 'go.sum'

jobs:
govulncheck:
runs-on: ubuntu-latest
name: Run govulncheck
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set version env variables
run: |
cat .version >> $GITHUB_ENV
- id: Run govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: "${{env.GO_VERSION}}"
go-package: ./...

0 comments on commit 84988d8

Please sign in to comment.