Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit 8d28b5a

Browse files
authored
Add in detailed number of nosec exclusions to all previous added in #nosec exclusions
Fixes #67
1 parent 1f43340 commit 8d28b5a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

subgit/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import sys
99
from multiprocessing import Pool
1010
from pathlib import Path
11-
from subprocess import PIPE, Popen # nosec
11+
from subprocess import PIPE, Popen # nosec-B404
1212

1313
# 3rd party imports
1414
import git
@@ -32,7 +32,7 @@ def run_cmd(cli_command):
3232
stdout=PIPE,
3333
stderr=None,
3434
shell=True,
35-
) # nosec
35+
) # nosec-B602
3636
output, stderr = process.communicate()
3737

3838
return output, stderr

subgit/inspect/git_inspect.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# python std lib
44
import json
55
import logging
6-
import subprocess # nosec
6+
import subprocess # nosec-B404
77

88
# 3rd party imports
99
from ruamel import yaml
@@ -36,7 +36,7 @@ def _cli_installed(self, source):
3636
],
3737
shell=False,
3838
capture_output=True,
39-
) # nosec
39+
) # nosec-B603
4040
except FileNotFoundError:
4141
return False
4242

@@ -59,7 +59,7 @@ def inspect_github(self, owner):
5959
],
6060
shell=False,
6161
capture_output=True,
62-
) # nosec
62+
) # nosec-B607
6363
data = json.loads(out.stdout)
6464
repos = {}
6565
mapped_data = {
@@ -118,7 +118,7 @@ def inspect_gitlab(self, owner):
118118
],
119119
shell=False,
120120
capture_output=True,
121-
) # nosec
121+
) # nosec-B607
122122
repos = {}
123123
data = json.loads(out.stdout)
124124
mapped_data = {

0 commit comments

Comments
 (0)