tokuhirom / Minilla

Authorizing tool for CPAN modules
https://metacpan.org/release/Minilla
Other
97 stars 65 forks source link

Feature request: get PAUSE credentials from environment variables #325

Closed skaji closed 11 months ago

skaji commented 1 year ago

I'm using 1password, and I store my PAUSE credentials in it.

If Minilla::Release::UploadToCPAN supports getting PAUSE credentials from environment variables, then I don't need to store PAUSE credentials in ~/.pause anymore and I can release CPAN modules by:

❯ export PAUSE_USERNAME=op://Personal/pause/username
❯ export PAUSE_PASSWORD=op://Personal/pause/password

# "op" is a CLI of 1password,
# which runs "minil release" with PAUSE_USERNAME/PAUSE_PASSWORD references
# replaced with their corresponding secret value.
❯ op run -- minil release

ref https://github.com/rjbs/Dist-Zilla/issues/720 https://github.com/tokuhirom/Minilla/pull/309