Skip to content

Use latest stable version for vulnerabilities check #12

Use latest stable version for vulnerabilities check

Use latest stable version for vulnerabilities check #12

name: Check repository for vulnerabilities
on: [push, workflow_dispatch]
jobs:
vulnerabilities:
env:
report-file: report.txt
name: Check vulnerabilities
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run check
run: govulncheck -show verbose ./... 2>&1 | tee ${{ env.report-file }}
- name: Collect report
if: always()
uses: actions/upload-artifact@v4
with:
name: 'govulncheck-report'
path: ${{ env.report-file }}
overwrite: true