Skip to content

Commit

Permalink
chore: update existing nosemgreps and include semgrep as needed for b…
Browse files Browse the repository at this point in the history
…uild (#737)
  • Loading branch information
artemrys committed May 2, 2023
1 parent 3d356a3 commit f2ae295
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ jobs:
- test-unit
- test-smoke
- pre-commit
- semgrep
- appinspect-for-expected-outputs
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion splunk_add_on_ucc_framework/commands/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

PARENT_DIR = ".."
internal_root_dir = os.path.dirname(os.path.dirname(__file__))
# nosemgrep: splunk.autoescape-disabled
# nosemgrep: splunk.autoescape-disabled, python.jinja2.security.audit.autoescape-disabled.autoescape-disabled
j2_env = Environment(
loader=FileSystemLoader(os.path.join(internal_root_dir, "templates"))
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
self._all_settings = input_setting
self._alert_settings = input_setting[ac.MODULAR_ALERTS]
self._package_path = package_path
# nosemgrep: splunk.autoescape-disabled
# nosemgrep: splunk.autoescape-disabled, python.jinja2.security.audit.autoescape-disabled.autoescape-disabled
self._templates = Environment(
loader=FileSystemLoader(
op.join(op.dirname(op.realpath(__file__)), "arf_template")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, input_setting=None, package_path=None):
self._all_setting = input_setting
self._package_path = package_path
self._current_alert = None
# nosemgrep: splunk.autoescape-disabled
# nosemgrep: splunk.autoescape-disabled, python.jinja2.security.audit.autoescape-disabled.autoescape-disabled
self._templates = Environment(
loader=FileSystemLoader(
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(
self._alert_actions_setting = input_setting[ac.MODULAR_ALERTS]
self._ta_name = self._all_setting.get(ac.SHORT_NAME)
self._lib_dir = self.get_python_lib_dir_name(self._ta_name)
# nosemgrep: splunk.autoescape-disabled
# nosemgrep: splunk.autoescape-disabled, python.jinja2.security.audit.autoescape-disabled.autoescape-disabled
self._templates = Environment(
loader=FileSystemLoader(
op.join(op.dirname(op.realpath(__file__)), "arf_template")
Expand Down

0 comments on commit f2ae295

Please sign in to comment.