mirror of https://github.com/gofiber/fiber.git
Disable caching when running govulncheck (#2503)
* Migrate to golang official govulncheck action * Remove unsupported go version from govulncheck * Update vulncheck.yml * Update vulncheck.yml * Update template to disable caching * Run checkout before setup-gopull/2511/head
parent
2eaeb0f3f7
commit
78f4510b28
|
@ -14,11 +14,11 @@ jobs:
|
|||
name: lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
# NOTE: Keep this in sync with the version from go.mod
|
||||
go-version: 1.20.x
|
||||
- uses: actions/checkout@v3
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
name: Run govulncheck
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
@ -12,23 +14,22 @@ on:
|
|||
- '**'
|
||||
- '!docs/**'
|
||||
- '!**.md'
|
||||
name: Vulnerability Check
|
||||
|
||||
jobs:
|
||||
Security:
|
||||
govulncheck-check:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO111MODULE: on
|
||||
steps:
|
||||
- name: Fetch Repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.20.x
|
||||
go-version: 'stable'
|
||||
check-latest: true
|
||||
- name: Fetch Repository
|
||||
uses: actions/checkout@v3
|
||||
cache: false
|
||||
- name: Install Govulncheck
|
||||
run: |
|
||||
export GO111MODULE=on
|
||||
export PATH=${PATH}:`go env GOPATH`/bin
|
||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
run: go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
- name: Run Govulncheck
|
||||
run: "`go env GOPATH`/bin/govulncheck ./..."
|
||||
|
||||
run: govulncheck ./...
|
Loading…
Reference in New Issue