Skip to content

Commit

Permalink
Merge pull request #895 from rapidfort/readme_update
Browse files Browse the repository at this point in the history
- fixed path, removed some hardcode
  • Loading branch information
Oleg-RapidFort authored Nov 6, 2024
2 parents 663c691 + 7f61ccc commit c25b3b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions community_images/common/templates/image_readme.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ This optimized image is functionally equivalent to [{{- source_image_provider }}

<p style="display: flex; justify-content: center; gap: 16px;">
<a href="{{ report_url -}}?utm_source=github&utm_medium=ci_view_report&utm_campaign=sep_01_sprint&utm_term={{- name -}}&utm_content=vulns_count_chart">
<img src="https://raw.githubusercontent.com/rapidfort/community-images/refs/heads/main/apache/bitnami/assets/vulns_count_chart.svg" alt="Vulnerabilities by severity" width="100%" />
<img src="https://raw.githubusercontent.com/rapidfort/community-images/refs/heads/main/ {{- github_location -}} /assets/vulns_count_chart.svg" alt="Vulnerabilities by severity" width="100%" />
</a>
<a href="{{ report_url -}}?utm_source=github&utm_medium=ci_view_report&utm_campaign=sep_01_sprint&utm_term={{- name -}}&utm_content=original_vs_hardened_vulns_chart">
<img src="https://raw.githubusercontent.com/rapidfort/community-images/refs/heads/main/apache/bitnami/assets/original_vs_hardened_vulns_chart.svg" alt="Original vs. this image" width="100%" />
<img src="https://raw.githubusercontent.com/rapidfort/community-images/refs/heads/main/ {{- github_location -}} /assets/original_vs_hardened_vulns_chart.svg" alt="Original vs. this image" width="100%" />
</a>
</p>

Expand Down
4 changes: 0 additions & 4 deletions report_shots/shots.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ const generateCharts = async (imageName, platform, imageSavePath) => {
const vulnsHardened = await fetchDataRequest(jsonInfo?.vulns_hardened);
const {vulnsSeverityCount: vulnsHardenedSummary, hardenedVulnsFlags, } = convertVulnsData(vulnsHardened, true, true);
const {vulnsSeverityCount: vulnsOriginalSummary} = convertVulnsData(vulns, true, false, hardenedVulnsFlags);

Object.keys(vulnsOriginalSummary.default).forEach((severity) => {
vulnsOriginalSummary.default[severity] = vulnsOriginalSummary.default[severity] * 100000;
});

// generate SVGs
// const vulnsSavingsChartSVG = await generateSavingsChart('Vulnerabilities', imageInfo.noVulns, imageInfo.noVulnsHardened, false);
Expand Down

0 comments on commit c25b3b9

Please sign in to comment.