NAME
Dist::Zilla::Stash::OnePasswordLogin - get login credentials from 1Password
VERSION
version 0.001
OVERVIEW
This is a stash class, one of the less-often seen kinds of Dist::Zilla components. It's expected that you'll use it for things that expect a "Login" stash credential, like the UploadToCPAN plugin. Starting with Dist::Zilla v6.032, you can use any Login credential (not just a PAUSE-specific) one for the UploadToCPAN plugin. You need to configure the stash in your home directory's dzil configuration, probably ~/.dzil/config.ini
, like this:
[%OnePasswordLogin / %PAUSE]
item = op://Vault Name/PAUSE Credential Name
If you've got a "username" and "password" field on that vault item, this should just work!
This uses Password::OnePassword::OPCLI under the hood. You'll need to have that installed, and you'll need to be able to authenticate with 1Password, meaning that this stash isn't useful for automated build-and-release pipelines.
PERL VERSION
This module should work on any version of perl still receiving updates from the Perl 5 Porters. This means it should work on any version of perl released in the last two to three years. (That is, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.)
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.
AUTHOR
Ricardo Signes <rjbs@semiotic.systems>
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.