Skip to content

Merge pull request #14 from sunhailin-Leo/dependabot/github_actions/n… #42

Merge pull request #14 from sunhailin-Leo/dependabot/github_actions/n…

Merge pull request #14 from sunhailin-Leo/dependabot/github_actions/n… #42

Workflow file for this run

name: Vulnerability Check
on:
push:
branches:
- main
paths:
- '**'
- '!**.md'
pull_request:
paths:
- '**'
- '!**.md'
jobs:
Security:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
check-latest: true
- name: Fetch Repository
uses: actions/checkout@v4
- name: Install Govulncheck
run: |
export GO111MODULE=on
export PATH=${PATH}:`go env GOPATH`/bin
go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run Govulncheck
run: "cd test && `go env GOPATH`/bin/govulncheck ./..."