Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

gpg-decryption

#!/bin/sh

# Decrypt the file
mkdir $HOME/secrets
# --batch to prevent interactive command
# --yes to assume "yes" for questions
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" 
--output $HOME/secrets/my_secret.json my_secret.json.gpg
Source by docs.github.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+7 =