We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57cb233 commit 153377eCopy full SHA for 153377e
1 file changed
enrich_code_scanning_alerts.py
@@ -15,7 +15,7 @@
15
import re
16
from typing import Any
17
from pathlib import Path
18
-from datetime import datetime
+from datetime import datetime, timezone
19
import time
20
from mistletoe import markdown
21
import humanize
@@ -312,7 +312,7 @@ def make_summary(
312
"""Make an HTML summary of the alerts."""
313
title = '<div><h1><i class="fa-brands fa-github" style="font-size: xxx-large" title="GitHub Advanced Security"></i> Code Scanning Report</h1></div>'
314
generated_at = '<div style="font-size: small">Generated at {}Z</div>'.format(
315
- datetime.utcnow().isoformat(timespec="seconds")
+ datetime.now(timezone.utc).isoformat(timespec="seconds")
316
)
317
scope = "<div><strong>Scope</strong>: {}</div>".format(escape(scope))
318
0 commit comments