Skip to content

Commit

Permalink
Add in detailed number of nosec exclusions to all previous added in #…
Browse files Browse the repository at this point in the history
…nosec exclusions

Fixes #67
  • Loading branch information
Grokzen committed Jan 11, 2024
1 parent 1f43340 commit 8d28b5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions subgit/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import sys
from multiprocessing import Pool
from pathlib import Path
from subprocess import PIPE, Popen # nosec
from subprocess import PIPE, Popen # nosec-B404

# 3rd party imports
import git
Expand All @@ -32,7 +32,7 @@ def run_cmd(cli_command):
stdout=PIPE,
stderr=None,
shell=True,
) # nosec
) # nosec-B602
output, stderr = process.communicate()

return output, stderr
Expand Down
8 changes: 4 additions & 4 deletions subgit/inspect/git_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# python std lib
import json
import logging
import subprocess # nosec
import subprocess # nosec-B404

# 3rd party imports
from ruamel import yaml
Expand Down Expand Up @@ -36,7 +36,7 @@ def _cli_installed(self, source):
],
shell=False,
capture_output=True,
) # nosec
) # nosec-B603
except FileNotFoundError:
return False

Expand All @@ -59,7 +59,7 @@ def inspect_github(self, owner):
],
shell=False,
capture_output=True,
) # nosec
) # nosec-B607
data = json.loads(out.stdout)
repos = {}
mapped_data = {
Expand Down Expand Up @@ -118,7 +118,7 @@ def inspect_gitlab(self, owner):
],
shell=False,
capture_output=True,
) # nosec
) # nosec-B607
repos = {}
data = json.loads(out.stdout)
mapped_data = {
Expand Down

0 comments on commit 8d28b5a

Please sign in to comment.