update for 25.05

This commit is contained in:
Alex Tau 2025-06-06 01:14:25 +03:00
parent f691180e9b
commit 62a25410cc
2 changed files with 6 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
pyproject-nix = {
url = "github:pyproject-nix/pyproject.nix";

View file

@ -28,12 +28,17 @@ def vulnix_check() -> list[Alert]:
if len(non_whitelisted_cves) == 0:
continue
message = f"New findings in derivation <code>{finding.derivation}</code>:"
short_message = f"New findings in <code>{finding.derivation}</code> (short ver):"
for cve in non_whitelisted_cves:
if cve in finding.cvssv3_basescore:
score_str = f"(CVSSv3 = {finding.cvssv3_basescore[cve]})"
else:
score_str = "(not scored by CVSSv3)"
message += f'\n* <a href="https://nvd.nist.gov/vuln/detail/{cve}">{cve}</a> - {finding.description[cve]} {score_str}'
short_message += f'\n * <a href="https://nvd.nist.gov/vuln/detail/{cve}">{cve}</a>'
if len(message) > 3700:
message = short_message
alert = Alert(
alert_type=AlertType.VULN,