Skip to content

Commit

Permalink
templates/basic: run govulncheck weekly (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfritz authored Oct 20, 2023
1 parent c182783 commit 6b4637c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
20 changes: 20 additions & 0 deletions templates/basic/.github/workflows/vulncheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Vulnerability check

on:
schedule:
- cron: '0 7 * * 1' # Weekly on Mondays at 7:00 AM

jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21.3"

- name: Vulncheck
run: make vulncheck
5 changes: 5 additions & 0 deletions templates/basic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ mod:
lint:
go run github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION) run ./...

## Run vulncheck
.PHONY: vulncheck
vulncheck:
go run golang.org/x/vuln/cmd/govulncheck@latest ./...

## generates coverage report
.PHONY: test/coverage
test/coverage:
Expand Down

0 comments on commit 6b4637c

Please sign in to comment.