Skip to content

Commit

Permalink
Vulnerability Check (#269)
Browse files Browse the repository at this point in the history
* valncheck

* update
  • Loading branch information
skonto authored May 11, 2023
1 parent e00cbc3 commit 03cf72c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/vulncheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Go Vulnerability detection

on:
push:
branches:
- '**'
tags:
- 'v*.*.*'
pull_request:
branches:
- '**'
workflow_dispatch: # Manual workflow trigger

jobs:
govulncheck:
name: detect
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}
steps:
- name: Set up Go 1.18.x
uses: actions/setup-go@v2
with:
go-version: 1.18.x

- name: Checkout
uses: actions/checkout@v2
with:
path: ./src/github.com/${{ github.repository }}

- name: Govulncheck scan
working-directory: ./src/github.com/${{ github.repository }}
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./... || true

0 comments on commit 03cf72c

Please sign in to comment.