chore: use errors.New to replace fmt.Errorf with no parameters #6055
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Gosec | |
on: | |
pull_request: | |
paths: | |
- "**/*.go" | |
- "go.mod" | |
- "go.sum" | |
branches: | |
- main | |
- feat/* | |
push: | |
branches: | |
- main | |
- feat/* | |
paths: | |
- "**/*.go" | |
- "go.mod" | |
- "go.sum" | |
jobs: | |
Gosec: | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: on | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v4 | |
- name: Run Gosec Security Scanner | |
uses: securego/gosec@master | |
with: | |
args: "-exclude=G115 -exclude-dir=tests -exclude-dir=testutil -exclude-dir=app -exclude-generated ./..." |