Skip to content

Commit

Permalink
Use zeta-chain-gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jul 11, 2024
1 parent 0591d70 commit f5a4763
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 34 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/sast-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,10 @@ jobs:
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'

- name: Run Gosec Security Scanner
uses: securego/[email protected]
with:
args: ./...

gosec-cosmos:
runs-on: ubuntu-22.04
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
uses: zeta-chain/[email protected]
with:
go-version: '1.22'

- name: Run Cosmos Gosec Security Scanner
run: make lint-cosmos-gosec
args: -exclude-generated ./...

lint:
runs-on: ubuntu-22.04
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ lint-pre:
lint: lint-pre
@golangci-lint run

lint-cosmos-gosec:
@bash ./scripts/cosmos-gosec.sh
lint-gosec:
@bash ./scripts/gosec.sh

gosec:
gosec -exclude-dir=localnet ./...
Expand Down
7 changes: 0 additions & 7 deletions scripts/cosmos-gosec.sh

This file was deleted.

0 comments on commit f5a4763

Please sign in to comment.