Update version for govulncheck (#4898)

This commit is contained in:
Aditya Manthramurthy
2024-04-11 16:47:52 -07:00
committed by GitHub
parent 0b13328b3a
commit 6bac84d281
4 changed files with 30 additions and 26 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ name: Go
on:
pull_request:
branches:
- master
- master
# This ensures that previous jobs for the PR are canceled when the PR is
# updated.
@@ -23,13 +23,13 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v4
- name: Build on ${{ matrix.os }}
if: matrix.os == 'windows-latest'
+15 -15
View File
@@ -2,25 +2,25 @@ name: VulnCheck
on:
pull_request:
branches:
- master
- master
push:
branches:
- master
- master
jobs:
vulncheck:
name: Analysis
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.8
check-latest: true
- name: Get official govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
shell: bash
- name: Run govulncheck
run: govulncheck ./...
shell: bash
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.9
check-latest: true
- name: Get official govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
shell: bash
- name: Run govulncheck
run: govulncheck ./...
shell: bash