Skip to content

Commit

Permalink
Add govulncheck workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cbosdo committed Oct 21, 2024
1 parent 5f11604 commit da60118
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/vulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SPDX-FileCopyrightText: 2023 SUSE LLC
#
# SPDX-License-Identifier: Apache-2.0

name: Vulnerability check

on:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
govulncheck:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0

- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true

- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
shell: bash

- id: govulncheck
name: Run govulncheck
run: govulncheck -tags ptf ./...
shell: bash

0 comments on commit da60118

Please sign in to comment.