Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giterlizzi/perl-csaf
CSAF (Common Security Advisory Framework) Perl Toolkit
https://github.com/giterlizzi/perl-csaf
csaf csaf-downloader csaf-validator
Last synced: 25 days ago
JSON representation
CSAF (Common Security Advisory Framework) Perl Toolkit
- Host: GitHub
- URL: https://github.com/giterlizzi/perl-csaf
- Owner: giterlizzi
- License: artistic-2.0
- Created: 2023-08-14T20:43:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-17T23:30:34.000Z (3 months ago)
- Last Synced: 2024-10-20T08:51:19.183Z (2 months ago)
- Topics: csaf, csaf-downloader, csaf-validator
- Language: Perl
- Homepage: https://metacpan.org/dist/CSAF
- Size: 521 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[![Release](https://img.shields.io/github/release/giterlizzi/perl-CSAF.svg)](https://github.com/giterlizzi/perl-CSAF/releases) [![Actions Status](https://github.com/giterlizzi/perl-CSAF/workflows/linux/badge.svg)](https://github.com/giterlizzi/perl-CSAF/actions) [![License](https://img.shields.io/github/license/giterlizzi/perl-CSAF.svg)](https://github.com/giterlizzi/perl-CSAF) [![Starts](https://img.shields.io/github/stars/giterlizzi/perl-CSAF.svg)](https://github.com/giterlizzi/perl-CSAF) [![Forks](https://img.shields.io/github/forks/giterlizzi/perl-CSAF.svg)](https://github.com/giterlizzi/perl-CSAF) [![Issues](https://img.shields.io/github/issues/giterlizzi/perl-CSAF.svg)](https://github.com/giterlizzi/perl-CSAF/issues) [![Coverage Status](https://coveralls.io/repos/github/giterlizzi/perl-CSAF/badge.svg)](https://coveralls.io/github/giterlizzi/perl-CSAF)
# CSAF Perl Toolkit
## Synopsis
```.pl
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 documents
- `csaf-rolie`, Create ROLIE feed
- `csaf-validator`, Validate a CSAF document
- `csaf2html`, Convert CSAF documents in HTML## Install
Using Makefile.PL:
To install `CSAF` distribution, run the following commands.
perl Makefile.PL
make
make test
make installUsing 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-2024 © Giuseppe Di Terlizzi