mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
update for 25.05
This commit is contained in:
parent
f691180e9b
commit
62a25410cc
2 changed files with 6 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue