Skip to content

Commit

Permalink
build(deps): updates compliance-trestle to point to fork for feature …
Browse files Browse the repository at this point in the history
…testing

Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Aug 22, 2023
1 parent 2f98032 commit 30d90ac
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
16 changes: 10 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ trestle-bot = "trestlebot.cli:run"
[tool.poetry.dependencies]
python = '^3.8.1'
gitpython = "^3.1.31"
compliance-trestle = "^2.2.1"
compliance-trestle = {git = "https://github.com/RedHatProductSecurity/compliance-trestle.git", rev = "PSCE-143"}
github3-py = "^4.0.1"
python-gitlab = "^3.15.0"

Expand Down
1 change: 1 addition & 0 deletions tests/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def setup_for_ssp(
yaml_header=None,
allowed_sections=None,
force_overwrite=None,
leveraged_ssp=""
)

return args
Expand Down
6 changes: 4 additions & 2 deletions trestlebot/tasks/authored/ssp.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ def regenerate(self, model_path: str, markdown_path: str) -> None:
comps = self.ssp_index.get_comps_by_ssp(ssp)
profile = self.ssp_index.get_profile_by_ssp(ssp)

# TODO: Add this to the trestle command once available
_ = self.ssp_index.get_leveraged_by_ssp(ssp)
leveraged_ssp = self.ssp_index.get_leveraged_by_ssp(ssp)
if leveraged_ssp is None:
leveraged_ssp = ""

try:
exit_code = ssp_generate._generate_ssp_markdown(
Expand All @@ -204,6 +205,7 @@ def regenerate(self, model_path: str, markdown_path: str) -> None:
yaml_header={},
overwrite_header_values=False,
force_overwrite=False,
leveraged_ssp_name_or_href=leveraged_ssp,
)
if exit_code != CmdReturnCodes.SUCCESS.value:
raise AuthoredObjectException(
Expand Down

0 comments on commit 30d90ac

Please sign in to comment.