Skip to content

Commit

Permalink
ci: add govulncheck (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyenought authored Nov 6, 2023
1 parent b8ffcbe commit f176f53
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/vulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run govulncheck

on:
push:
branches:
- develop
paths:
- "**"
- "!**.md"
pull_request:
paths:
- "**"
- "!**.md"

jobs:
vulncheck-check:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Fetch Repository
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "stable"
check-latest: true
cache: false

- name: Install Govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest

- name: Run Govulncheck
run: govulncheck ./...

0 comments on commit f176f53

Please sign in to comment.