Skip to content

Commit

Permalink
Added all CWE category and fixed ROLIE "feed_url" options
Browse files Browse the repository at this point in the history
  • Loading branch information
giterlizzi committed Apr 16, 2024
1 parent 7c93f1b commit e5312b7
Show file tree
Hide file tree
Showing 3 changed files with 424 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/CSAF.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use overload '""' => \&to_string, fallback => 1;

use Moo;

our $VERSION = '0.20';
our $VERSION = '0.21';

our $CACHE = {};

Expand Down
5 changes: 2 additions & 3 deletions lib/CSAF/Options/ROLIE.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ use constant FALSE => !!0;

has csaf_directory => (is => 'rw');
has base_url => (is => 'rw', trigger => 1, default => 'https://psirt.domain.tld/advisories/csaf');
has feed_filename => (is => 'rw');
has feed_filename => (is => 'rw', default => 'csaf-feed-tlp-white.json');
has feed_id => (is => 'rw', trigger => 1, default => 'csaf-feed-tlp-white');
has feed_link => (is => 'rw', default => sub { [] });
has feed_title => (is => 'rw', default => 'CSAF feed (TLP:WHITE)');
has feed_url => (is => 'lazy');
has tlp_label => (is => 'rw', trigger => 1, default => 'WHITE', coerce => sub { uc $_[0] });

sub _trigger_base_url {
Expand All @@ -43,7 +42,7 @@ sub _trigger_feed_id {

}

sub _build_feed_url {
sub feed_url {
my $self = shift;
return join('/', $self->base_url, $self->feed_filename);
}
Expand Down
Loading

0 comments on commit e5312b7

Please sign in to comment.