diff --git a/scubagoggles/reporter/reporter.py b/scubagoggles/reporter/reporter.py index 16c69682..8a103e2b 100644 --- a/scubagoggles/reporter/reporter.py +++ b/scubagoggles/reporter/reporter.py @@ -320,17 +320,18 @@ def rego_json_to_ind_reports(test_results_data : str, product : list, out_path : 'Criticality': test['Criticality'], 'Details': details}) markdown_group_name = "-".join(baseline_group['GroupName'].split()) - group_reference_url = f'{SCUBA_GITHUB_URL}/tree/v0.2.0/baselines/'\ + group_reference_url = f'{SCUBA_GITHUB_URL}/blob/v0.2.0/baselines/'\ f'{full_name} Minimum Viable Secure Configuration Baseline v0.2.md#'\ f'{baseline_group["GroupNumber"]}-{markdown_group_name}' - markdown_link = fr''\ + group_reference_url_spacing = "%20".join(group_reference_url.split()) + markdown_link = fr''\ f'{baseline_group["GroupName"]}' fragments.append(f"

{product_upper}-{baseline_group['GroupNumber']} \ {markdown_link}

") fragments.append(create_html_table(table_data)) results_data.update({"GroupName": baseline_group['GroupName']}) results_data.update({"GroupNumber": baseline_group['GroupNumber']}) - results_data.update({"GroupReferenceURL":group_reference_url}) + results_data.update({"GroupReferenceURL":group_reference_url_spacing}) results_data.update({"Controls": table_data}) json_data.append(results_data) html = build_report_html(fragments, prod_to_fullname[product], tenant_domain, main_report_name)