Skip to content

Fix gosec security error. #79

Fix gosec security error.

Fix gosec security error. #79

Workflow file for this run

name: Build
on:
push:
branches: [ "main", "v2" ]
pull_request:
branches: [ "main", "v2" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.5
- name: Go vet
run: go vet ./...
- name: Run Gosec
uses: securego/gosec@master
with:
args: ./...
- name: Run Revive
uses: docker://morphy/revive-action:v2
- name: Go fix
run: go fix ./...
- name: Go build
run: go build -v ./...
- name: Go test
run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3