2022-09-12 13:10:30 -04:00
|
|
|
name: VulnCheck
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-09-14 11:17:39 -04:00
|
|
|
- master
|
2023-10-12 09:15:10 -04:00
|
|
|
- next
|
2022-09-14 11:17:39 -04:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-10-12 09:15:10 -04:00
|
|
|
- next
|
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
|
|
|
|
uses: actions/checkout@v3
|
2022-09-14 11:17:39 -04:00
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v3
|
2022-09-12 23:16:39 -04:00
|
|
|
with:
|
2023-10-12 00:18:17 -04:00
|
|
|
go-version: 1.21.3
|
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
|
|
|
|
run: govulncheck ./...
|
|
|
|
shell: bash
|