| 1 |
=pod |
| 2 |
|
| 3 |
=encoding utf8 |
| 4 |
|
| 5 |
=for HTML <a href="https://www.github.com/briandfoy/cpan-security-advisory/actions?query=workflow%3Amacos"><img src="https://www.github.com/briandfoy/cpan-security-advisory/workflows/macos/badge.svg"></a> |
| 6 |
|
| 7 |
=for HTML <a href="https://www.github.com/briandfoy/cpan-security-advisory/actions?query=workflow%3Aubuntu"><img src="https://www.github.com/briandfoy/cpan-security-advisory/workflows/ubuntu/badge.svg"></a> |
| 8 |
|
| 9 |
=for HTML <a href="https://www.github.com/briandfoy/cpan-security-advisory/actions?query=workflow%3Awindows"><img src="https://www.github.com/briandfoy/cpan-security-advisory/workflows/windows/badge.svg"></a> |
| 10 |
|
| 11 |
=for HTML <a href='https://ci.appveyor.com/project/briandfoy/cpan-security-advisory'><img src='https://ci.appveyor.com/api/projects/status/bmve9x6oe8npv9q6?svg=true'></a> |
| 12 |
|
| 13 |
=for HTML <a href='https://coveralls.io/github/briandfoy/cpan-security-advisory?branch=master'><img src='https://coveralls.io/repos/github/briandfoy/cpan-security-advisory/badge.svg?branch=master' alt='Coverage Status' /></a> |
| 14 |
|
| 15 |
=for HTML <a href="https://github.com/briandfoy/cpan-security-advisory/blob/master/LICENSE"><img src="https://img.shields.io/cpan/l/CPANSA-DB.svg" /></a> |
| 16 |
|
| 17 |
=for HTML <a href="https://metacpan.org/pod/CPANSA::DB"><img src="https://img.shields.io/cpan/v/CPANSA-DB.svg" /></A> |
| 18 |
|
| 19 |
=head1 The CPANSA::DB module |
| 20 |
|
| 21 |
**Report Perl security problems to [CPAN Security |
| 22 |
Group](https://security.metacpan.org), not here**. This is not a |
| 23 |
primary source of security information. |
| 24 |
|
| 25 |
This is the I<README> for the L<CPANSA::DB> Perl module. This is the |
| 26 |
database that L<CPAN::Audit> uses to do its work. The module was |
| 27 |
previously known as C<CPAN::Audit::DB> but moved to its own repo and |
| 28 |
distribution so you can update the database seperately. |
| 29 |
|
| 30 |
You're probably looking at this because you don't know where else to |
| 31 |
find what you're looking for. Read this once and you might never have |
| 32 |
to read one again for any Perl module. |
| 33 |
|
| 34 |
=head2 Documentation |
| 35 |
|
| 36 |
This module is a data pack for other modules, such as L<CPAN::Audit>, |
| 37 |
that need access to the digested form of the CPAN Security Advisories |
| 38 |
database. There's not much you need to read, but you can look at the |
| 39 |
data structure. |
| 40 |
|
| 41 |
To read about L<CPANSA::DB>, look at the embedded documentation |
| 42 |
in the module itself. Inside the distribution, you can format it |
| 43 |
with L<perldoc|http://perldoc.perl.org/perldoc.html>: |
| 44 |
|
| 45 |
% perldoc lib/CPANSA/DB.pm |
| 46 |
|
| 47 |
If you have already installed the module, you can specify the module |
| 48 |
name instead of the file location: |
| 49 |
|
| 50 |
% perldoc CPANSA::DB |
| 51 |
|
| 52 |
You can read the documentation and inspect the meta data on |
| 53 |
L<MetaCPAN|https://www.metacpan.org/pod/CPANSA::DB>. |
| 54 |
|
| 55 |
The standard module documentation has example uses in the SYNOPSIS |
| 56 |
section, but you can also look in the I<examples/> directory (if it's |
| 57 |
there), or look at the test files in I<t/>. |
| 58 |
|
| 59 |
=head2 Installation |
| 60 |
|
| 61 |
You can install this module with a CPAN client, which will resolve |
| 62 |
and install the dependencies: |
| 63 |
|
| 64 |
% cpan CPANSA::DB |
| 65 |
% cpanm CPANSA::DB |
| 66 |
|
| 67 |
You can also install directly from the distribution directory, which |
| 68 |
will also install the dependencies: |
| 69 |
|
| 70 |
% cpan . |
| 71 |
% cpanm . |
| 72 |
|
| 73 |
You could install just this module manually: |
| 74 |
|
| 75 |
% perl Makefile.PL |
| 76 |
% make |
| 77 |
% make test |
| 78 |
% make install |
| 79 |
|
| 80 |
You probably don't want to do that unless you're fiddling with the |
| 81 |
module and only want to run the tests without installing anything. |
| 82 |
|
| 83 |
=head2 Source location |
| 84 |
|
| 85 |
The meta data, such as the source repository and bug tracker, is in |
| 86 |
I<Makefile.PL> or the I<META.*> files it creates. You can find that on |
| 87 |
those CPAN web interfaces, but you can also look at files directly in |
| 88 |
the source repository: L<https://github.com/briandfoy/cpan-security-advisory> |
| 89 |
|
| 90 |
If you find a problem, file a ticket in the L<issue |
| 91 |
tracker|https://github.com/briandfoy/cpan-security-advisory/issues>. |
| 92 |
|
| 93 |
There are also backup repositories hosted on other services. These |
| 94 |
reflect the state of the main repo and exist only for redundancy: |
| 95 |
|
| 96 |
=over 4 |
| 97 |
|
| 98 |
=item * L<https://bitbucket.com/theperlreview/cpan-security-advisory> |
| 99 |
|
| 100 |
=item * L<https://gitlab.com/briandfoy/cpan-security-advisory> |
| 101 |
|
| 102 |
=item * L<https://codeberg.org/briandfoy/cpan-security-advisory> |
| 103 |
|
| 104 |
=back |
| 105 |
|
| 106 |
=head2 GitHub Attestations |
| 107 |
|
| 108 |
This distribution now uses |
| 109 |
L<GitHub Attestations|https://github.blog/2024-05-02-introducing-artifact-attestations-now-in-public-beta/>, |
| 110 |
which allow you to verify that the archive file you have was made from |
| 111 |
the official repo. |
| 112 |
|
| 113 |
You need a GitHub account and the L<gh tool|https://github.com/larsks/ghcli>. |
| 114 |
|
| 115 |
# download the distro file from GitHub, MetaCPAN, or a CPAN mirror |
| 116 |
$ gh auth login |
| 117 |
...follow instructions... |
| 118 |
$ gh attestation verify CPANSA-DB-20241111.tar.gz --owner briandfoy |
| 119 |
|
| 120 |
Additionally, each release codes with GPG signature that allows you to |
| 121 |
verify that this. The key is the same one used when the database was |
| 122 |
distributed with L<CPAN::Audit>: |
| 123 |
|
| 124 |
$ gpg --verify lib/CPANSA/DB.pm.gpg lib/CPANSA/DB.pm |
| 125 |
gpg: Signature made Mon Nov 18 11:00:10 2024 EST |
| 126 |
gpg: using RSA key 75AAB42CBA0D7F37F0D6886DF83F8D5E878B6041 |
| 127 |
gpg: Good signature from "CPAN::Audit (brian d foy) (https://github.com/briandfoy/cpan-audit) <[email protected]>" [ultimate] |
| 128 |
|
| 129 |
=head2 Getting help |
| 130 |
|
| 131 |
Although I'm happy to hear from module users in private email, |
| 132 |
that's the best way for me to forget to do something. |
| 133 |
|
| 134 |
Besides the issue trackers, you can find help at |
| 135 |
L<Perlmonks|http://www.perlmonks.org> or |
| 136 |
L<Stackoverflow|http://www.stackoverflow.com>, both of which have many |
| 137 |
competent Perlers who can answer your question, almost in real time. |
| 138 |
They might not know the particulars of this module, but they can help |
| 139 |
you diagnose your problem. |
| 140 |
|
| 141 |
You might like to read L<brian's Guide to Solving Any Perl |
| 142 |
Problem|https://briandfoy.github.io/brians-guide-to-solving-any-perl-problem/>. |
| 143 |
|
| 144 |
=head2 Copyright and License |
| 145 |
|
| 146 |
You should have received a I<LICENSE> file, but the license is also noted |
| 147 |
in the module files. About the only thing you can't do is pretend that |
| 148 |
you wrote code that you didn't. |
| 149 |
|
| 150 |
=head2 Good luck! |
| 151 |
|
| 152 |
Enjoy, |
| 153 |
|
| 154 |
brian d foy, [email protected] |
| 155 |
|
| 156 |
=cut |