/
View dependency graph
Depends on
- libcvss-perl (libcvss-perl)
- libdigest-sha-perl (libdigest-sha-perl)
- libgnupg-interface-perl (libgnupg-interface-perl)
- libjson-validator-perl (libjson-validator-perl)
- liblist-moreutils-perl (liblist-moreutils-perl)
- liblog-any-perl (liblog-any-perl)
- libparallel-forkmanager-perl (libparallel-forkmanager-perl)
- libscalar-list-utils-perl (libscalar-list-utils-perl)
- libtest-simple-perl (libtest-simple-perl)
- liburi-packageurl-perl (liburi-packageurl-perl)
- libwww-perl (libwww-perl)
- libyaml-libyaml-perl (libyaml-libyaml-perl)
- perl (perl)
- debhelper-compat, libcpanel-json-xs-perl, libmoo-perl, libtemplate-perl
README (full)
CSAF Perl Toolkit
Synopsis
use CSAF;
my $csaf = CSAF->new;
$csaf->document->title('Base CSAF Document');
$csaf->document->category('csaf_security_advisory');
$csaf->document->publisher(
category => 'vendor',
name => 'CSAF',
namespace => 'https://csaf.io'
);
my $tracking = $csaf->document->tracking(
id => 'CSAF:2024-001',
status => 'final',
version => '1.0.0',
initial_release_date => 'now',
current_release_date => 'now'
);
$tracking->revision_history->add(
date => 'now',
summary => 'First release',
number => '1'
);
my @errors = $csaf->validate;
if (@errors) {
say $_ for (@errors);
Carp::croak "Validation errors";
}
# Save CSAF documents using the
$csaf->writer(directory => '/var/www/html/csaf')->write;
Command-Line Utility
csaf-downloader, Download CSAF documentscsaf-rolie, Create ROLIE feedcsaf-validator, Validate a CSAF documentcsaf2html, Convert CSAF documents in HTML
Install
Using Makefile.PL:
To install CSAF distribution, run the following commands.
perl Makefile.PL
make
make test
make install
Using App::cpanminus:
cpanm CSAF
Documentation
perldoc CSAF- https://metacpan.org/release/CSAF
- https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html
Copyright
- Copyright 2023-2025 © Giuseppe Di Terlizzi
| dir | bin/ |
| dir | debian/ |
| dir | lib/ |
| dir | t/ |
| file | Changes |
| file | INSTALL.md |
| file | LICENSE |
| file | MANIFEST |
| file | META.json |
| file | META.yml |
| file | Makefile.PL |
| file | README.md |
| file | SECURITY.md |