Update workflows to use go-stable. Remove staticcheck workflow
This commit is contained in:
parent
558230fe8f
commit
32f2633e44
3 changed files with 4 additions and 37 deletions
4
.github/workflows/gosec.yml
vendored
4
.github/workflows/gosec.yml
vendored
|
|
@ -24,10 +24,10 @@ jobs:
|
|||
- name: Install Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.21.x'
|
||||
go-version: 'stable'
|
||||
check-latest: true
|
||||
cache: false
|
||||
- name: Install Gosec
|
||||
run: go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||
- name: Run Gosec
|
||||
run: gosec ./...
|
||||
run: gosec ./...
|
||||
|
|
|
|||
4
.github/workflows/govulncheck.yml
vendored
4
.github/workflows/govulncheck.yml
vendored
|
|
@ -24,10 +24,10 @@ jobs:
|
|||
- name: Install Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.21.x'
|
||||
go-version: 'stable'
|
||||
check-latest: true
|
||||
cache: false
|
||||
- name: Install Govulncheck
|
||||
run: go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
- name: Run Govulncheck
|
||||
run: govulncheck ./...
|
||||
run: govulncheck ./...
|
||||
|
|
|
|||
33
.github/workflows/staticcheck.yml
vendored
33
.github/workflows/staticcheck.yml
vendored
|
|
@ -1,33 +0,0 @@
|
|||
name: Staticcheck Scan
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
- "main"
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
pull_request:
|
||||
branches:
|
||||
- "*"
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
|
||||
jobs:
|
||||
staticcheck-scan:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO111MODULE: on
|
||||
steps:
|
||||
- name: Fetch Repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.21.x'
|
||||
check-latest: true
|
||||
cache: false
|
||||
- name: Install staticcheck
|
||||
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||
- name: Run staticcheck
|
||||
run: staticcheck -tests=False ./...
|
||||
Loading…
Add table
Reference in a new issue