AlmaLinux / errata-email-notifications

GNU General Public License v3.0
0 stars 3 forks source link

Updated subject to ensure it follows the expected format (Resolves #6) #7

Closed javihernandez closed 1 year ago

javihernandez commented 1 year ago

The format should be:

[type_of_advisory Advisory] advisory_id: summary (severity)

i.e.:

[Security Advisory] ALSA-2022:5813: vim security update (Moderate)

javihernandez commented 1 year ago

Running the script locally produced the following output:

DEBUG Sending email with subject: [Security Advisory] ALSA-2022:5779: ruby:2.5 security update (Moderate)
INFO Updated almalinux-8_last_processed_ts with timestamp 1660145086000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:5809: pcre2 security update (Moderate)
INFO Updated almalinux-8_last_processed_ts with timestamp 1660153598000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:5819: kernel security and bug fix update (Important)
INFO Updated almalinux-8_last_processed_ts with timestamp 1660153904000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:5818: openssl security update (Moderate)
INFO Updated almalinux-8_last_processed_ts with timestamp 1660154151000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:5813: vim security update (Moderate)
INFO Updated almalinux-8_last_processed_ts with timestamp 1660154421000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:6058: .NET 6.0 security, bug fix, and enhancement update (Moderate)
INFO Updated almalinux-8_last_processed_ts with timestamp 1660733860000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:6057: .NET Core 3.1 security, bug fix, and enhancement update (Moderate)
INFO Updated almalinux-8_last_processed_ts with timestamp 1660734954000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:5095: grub2, mokutil, shim, and shim-unsigned-x64 security update (Important)
INFO Updated almalinux-8_last_processed_ts with timestamp 1661267816000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:6159: curl security update (Moderate)
INFO Updated almalinux-8_last_processed_ts with timestamp 1661872581000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:6158: php:7.4 security update (Moderate)
INFO Updated almalinux-8_last_processed_ts with timestamp 1661872840000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:6180: rsync security update (Important)
INFO Updated almalinux-8_last_processed_ts with timestamp 1661885196000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:6175: firefox security update (Important)
INFO Updated almalinux-8_last_processed_ts with timestamp 1661886522000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:6164: thunderbird security update (Important)
INFO Updated almalinux-8_last_processed_ts with timestamp 1661887564000 
DEBUG Processing erratas for distribution almalinux-9
DEBUG Fetching errata data from https://errata.almalinux.org/9/errata.json
DEBUG Starting new HTTPS connection (1): errata.almalinux.org:443
DEBUG https://errata.almalinux.org:443 "GET /9/errata.json HTTP/1.1" 200 None
DEBUG Found 4 new erratas for almalinux-9 distribution
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:5099: grub2, mokutil, shim, and shim-unsigned-x64 security update (Important)
INFO Updated almalinux-9_last_processed_ts with timestamp 1661279082000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:6174: firefox security update (Important)
INFO Updated almalinux-9_last_processed_ts with timestamp 1661871403000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:6157: curl security update (Moderate)
INFO Updated almalinux-9_last_processed_ts with timestamp 1661883420000 
DEBUG Sending email with subject: [Security Advisory] ALSA-2022:6165: thunderbird security update (Important)
INFO Updated almalinux-9_last_processed_ts with timestamp 1661887761000