Skip to content

Commit

Permalink
Merge pull request #88 from CosmosContracts/faddat-patch-1
Browse files Browse the repository at this point in the history
Create gosec.yml
  • Loading branch information
giansalex authored Nov 28, 2021
2 parents f88d778 + 7c2b30c commit 547f4bf
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Gosec
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
with:
SUFFIX_FILTER: |
.go
.mod
.sum
- name: Run Gosec Security Scanner
uses: informalsystems/gosec@master
with:
args: ./...
if: "env.GIT_DIFF != ''"
5 changes: 4 additions & 1 deletion app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str
counter++
}

iter.Close()
err := iter.Close()
if err != nil {
panic(err)
}

if _, err := app.StakingKeeper.ApplyAndReturnValidatorSetUpdates(ctx); err != nil {
panic(err)
Expand Down
5 changes: 3 additions & 2 deletions x/mint/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Rout

// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the mint module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx))

if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil {
panic(err)
}
}

// GetTxCmd returns no root tx command for the mint module.
Expand Down

0 comments on commit 547f4bf

Please sign in to comment.