Updates to new format #1

Open
fklement wants to merge 17 commits from CipherCell/pdf-reporting:updates-to-new-format into main
pull from: CipherCell/pdf-reporting:updates-to-new-format
3 changed files with 5 additions and 7 deletions
Showing only changes of commit 5959d9364b - Show all commits

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ vectors by `persistent_storage.utils.cvss_utils`.
### What it cannot fill in
A field the artifacts do not answer is written as `<xxx>`, never guessed or quietly dropped. Today
that is the report and artifact ids, the manufacturer, the analysed lines of code, the language
that is the manufacturer, the analysed lines of code, the language
breakdown, and the tools and profile of each pipeline stage — the metadata records that a stage ran
and how long it took, not what it ran.
+3 -5
View File
@@ -25,6 +25,8 @@ from typing import TYPE_CHECKING, Any
from .vendor.cipherverifier.core.services.sarif import summarize_sarif
from .vendor.cipherverifier.core.services.vdr import summarize_vdr
from .layout import TITLE
if TYPE_CHECKING:
from .vendor.cipherverifier.core.services.sarif import Finding, SarifReport
from .vendor.cipherverifier.core.services.vdr import VdrReport, Vulnerability
@@ -161,13 +163,9 @@ def _cover(
"subject": _stated(configuration.get("repository_name")),
"footer_date": datetime.now(UTC).strftime("%d %B %Y"),
"logo": "cc_logo.png",
"title": "SAST/SCA Report",
"title": TITLE,
"identity": [
_fact("Scan Identifier", sources.scan_id, kind="mono"),
# Neither exists in the store today: a scan has artifacts, and a report of it is not
# itself recorded as one.
_fact("Report ID", None, kind="mono"),
_fact("Artifact ID", None, kind="mono"),
_fact("Technology", ", ".join(technologies) or None),
_fact("Project", configuration.get("repository_name"), gap=True),
_fact("Version", configuration.get("repository_version")),
+1 -1
View File
@@ -23,7 +23,7 @@ TEMPLATE_NAME = "report.html.j2"
STYLESHEET = TEMPLATE_DIR / "report.css"
# What the document calls itself, in the PDF's own metadata rather than only on its first page.
TITLE = "SAST/SCA Report"
TITLE = "Complete Security Findings Report"
AUTHOR = "CipherCell"