Skip to content

Commit

Permalink
#312 added variables for baseline version and tool version
Browse files Browse the repository at this point in the history
  • Loading branch information
jfevang committed Jul 3, 2024
1 parent dab2ea6 commit 2bb5e2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scubagoggles/reporter/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ def rego_json_to_ind_reports(test_results_data : str, product : list, out_path :
ind_report_name = product_capitalized + "Report"
fragments = []
json_data = []
baseline_version = '0.2'
tool_version = '0.2.0'
report_stats = {
"Manual": 0,
"Passes": 0,
Expand Down Expand Up @@ -320,8 +322,8 @@ 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}/blob/v0.2.0/baselines/'\
f'{full_name} Minimum Viable Secure Configuration Baseline v0.2.md#'\
group_reference_url = f'{SCUBA_GITHUB_URL}/blob/v{tool_version}/baselines/'\
f'{full_name} Minimum Viable Secure Configuration Baseline v{baseline_version}.md#'\
f'{baseline_group["GroupNumber"]}-{markdown_group_name}'
group_reference_url_spacing = "%20".join(group_reference_url.split())
markdown_link = fr'<a href="{group_reference_url_spacing}" target="_blank"\>'\
Expand Down

0 comments on commit 2bb5e2c

Please sign in to comment.