fix(outputs): refresh scan timestamps per run (#9272)

This commit is contained in:
Hugo Pereira Brito authored and GitHub committed 2025-11-20 13:12:39 +01:00
1 parent b6ba6c6e31
commit dc7d2d5aeb
5 files changed
+65 -4

No files matched your search

+3
View File
@@ -15,6 +15,7 @@ from prowler.config.config import (
html_file_suffix,
json_asff_file_suffix,
json_ocsf_file_suffix,
set_output_timestamp,
)
from prowler.lib.outputs.asff.asff import ASFF
from prowler.lib.outputs.compliance.aws_well_architected.aws_well_architected import (
@@ -275,6 +276,8 @@ def _build_output_path(
with rls_transaction(tenant_id):
started_at = Scan.objects.get(id=scan_id).started_at
set_output_timestamp(started_at)
timestamp = started_at.strftime("%Y%m%d%H%M%S")
if subdirectory: