2022-09-12 13:10:30 -04:00
|
|
|
name: VulnCheck
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-09-14 11:17:39 -04:00
|
|
|
- master
|
2023-12-06 04:09:22 -05:00
|
|
|
|
2022-09-14 11:17:39 -04:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-01-21 12:55:17 -05:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2022-09-12 13:10:30 -04:00
|
|
|
jobs:
|
|
|
|
vulncheck:
|
|
|
|
name: Analysis
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-12 23:16:39 -04:00
|
|
|
- name: Check out code into the Go module directory
|
2024-03-28 19:44:49 -04:00
|
|
|
uses: actions/checkout@v4
|
2022-09-14 11:17:39 -04:00
|
|
|
- name: Set up Go
|
2024-03-28 19:44:49 -04:00
|
|
|
uses: actions/setup-go@v5
|
2022-09-12 23:16:39 -04:00
|
|
|
with:
|
2024-06-05 11:44:53 -04:00
|
|
|
go-version: 1.22.4
|
2022-09-12 23:16:39 -04:00
|
|
|
check-latest: true
|
2022-09-14 11:17:39 -04:00
|
|
|
- name: Get official govulncheck
|
|
|
|
run: go install golang.org/x/vuln/cmd/govulncheck@latest
|
|
|
|
shell: bash
|
|
|
|
- name: Run govulncheck
|
2024-04-16 14:48:56 -04:00
|
|
|
run: govulncheck -show verbose ./...
|
2022-09-14 11:17:39 -04:00
|
|
|
shell: bash
|