From c7de0ed8ebad53acf258909f0806938454ee6492 Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Tue, 14 Mar 2023 12:38:04 +0530 Subject: [PATCH] try semgrep ignore --- .github/workflows/lint.yml | 10 ++++++---- testutil/network/network.go | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 740150f4..ee526fbf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -61,7 +61,7 @@ jobs: - uses: cachix/install-nix-action@v18 - uses: cachix/cachix-action@v12 with: - name: ethermint + name: laconicd - uses: technote-space/get-diff-action@v6.1.2 with: PATTERNS: | @@ -71,21 +71,23 @@ jobs: if: env.GIT_DIFF gomod2nix: name: Check gomod2nix.toml file is up to date - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.3.4 - uses: cachix/install-nix-action@v18 - uses: cachix/cachix-action@v12 with: - name: ethermint + name: laconicd - uses: technote-space/get-diff-action@v6.1.2 with: PATTERNS: | **/**.py - name: run gomod2nix + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | nix run -f ./nix gomod2nix git diff --no-ext-diff --exit-code + with: + github-token: ${{ secrets.github_token }} if: env.GIT_DIFF diff --git a/testutil/network/network.go b/testutil/network/network.go index f2f77746..23239816 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -228,7 +228,9 @@ func NewCLILogger(cmd *cobra.Command) CLILogger { } // New creates a new Network for integration tests or in-process testnets run via the CLI -func New(l Logger, baseDir string, cfg Config) (*Network, error) { // nosemgrep +// nosemgrep +func New(l Logger, baseDir string, cfg Config) (*Network, error) { //nosemgrep + // nosemgrep // ignore semgrep: Missing mutex unlock before returning from a function. // unlocking in cleanup func // only one caller/test can create and use a network at a time @@ -332,6 +334,7 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) { // nosemgrep } else { _, jsonRPCPort, err := server.FreeTCPAddr() if err != nil { // nosemgrep + // nosemgrep return nil, err // nosemgrep } appCfg.JSONRPC.Address = fmt.Sprintf("127.0.0.1:%s", jsonRPCPort)