try semgrep ignore

This commit is contained in:
0xmuralik 2023-03-14 12:38:04 +05:30
parent 07b51ba53d
commit c7de0ed8eb
2 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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)