This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
docs: Archive announcement in README.md (#14) #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Govulncheck | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
govulncheck: | |
runs-on: ubuntu-latest | |
name: Govulncheck | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4.0.0 | |
with: | |
go-version: 1.21.0 | |
- uses: actions/cache@v3 | |
id: cache-govulneck | |
name: Load govulncheck cache | |
with: | |
key: ${{ runner.os }}-govulncheck-v1.0.0 | |
path: | | |
/home/runner/go/bin/govulncheck | |
- name: Install govulncheck | |
if: steps.cache-govulncheck.outputs.cache-hit != 'true' | |
run: go install golang.org/x/vuln/cmd/govulncheck@v1.0.0 | |
- name: Run govulncheck | |
run: govulncheck ./... |