Update workflows to use go-stable. Remove staticcheck workflow

This commit is contained in:
Juan Calderon-Perez 2024-02-11 23:17:44 -05:00
parent 558230fe8f
commit 32f2633e44
3 changed files with 4 additions and 37 deletions

View file

@ -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 ./...

View file

@ -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 ./...

View file

@ -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 ./...