Tis is a GitHub action preparing GPG for signing files without entering a password.
If successful, it stores the given password in the file, which is given in the input password_file.
If not successful, the latter file will no be existing.
steps:
- uses: actions/checkout@v4
- uses: fbrehm/prepare-debian-container@v1
- uses: fbrehm/github-setup-gpg@mainwith:
with:
public_key: ${{ secrets.public_key }}private_key: ${{ secrets.private_key }}key_password: ${{ secrets.key_password }}password_file: ${{ inputs.password_file }}key_id: ${{ inputs.key_id }}inputs:
public_key:
description: "This is the exported public GPG key"required: trueprivate_key:
description: "This is the exported private GPG key"required: truekey_password:
description: "This is the password of the imported private GPG key"required: truepassword_file:
description: "The file containing the password of the private GPG key."default: '.private/uhu.txt'key_id:
description: "The ID of the private GPG key."required: true