Skip to content

#8 Setting up CI checks via GH Actions #2

#8 Setting up CI checks via GH Actions

#8 Setting up CI checks via GH Actions #2

Workflow file for this run

name: security
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
schedule:
- cron: '0 10 * * 1' # run "At 10:00 on Monday"
jobs:
run:
name: Vulnerability Check
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
check-latest: true
- name: Checkout
uses: actions/checkout@v3
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run govulncheck
run: govulncheck -test ./...