Skip to content

CI: Output test coverprofile to Artifacts tab in Prow (#257) #139

CI: Output test coverprofile to Artifacts tab in Prow (#257)

CI: Output test coverprofile to Artifacts tab in Prow (#257) #139

Workflow file for this run

name: govulncheck
on:
push:
branches:
- main
pull_request:
permissions: {}
jobs:
govulncheck:
name: Run on Ubuntu
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Clone the code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
# Fetch full history so git worktree can check out the base branch.
fetch-depth: 0
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@d1f380186385b4f64e00313f31743df8e4b89a77 # v1.1.4
- name: Run govulncheck
# NRC_VERIFY_GIT_BRANCH tells the script which branch to use as the
# base for comparison.
env:
NRC_VERIFY_GIT_BRANCH: ${{ github.base_ref || 'main' }}
run: hack/verify-govulncheck.sh