From 71f988f085f5aa20005c617a86309d55672a85ea Mon Sep 17 00:00:00 2001 From: Hilmar Falkenberg Date: Wed, 5 Jun 2024 15:58:40 +0200 Subject: [PATCH] Update flake_vendorhash.yaml --- .github/workflows/flake_vendorhash.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/flake_vendorhash.yaml b/.github/workflows/flake_vendorhash.yaml index be64e8e924..bd19001807 100644 --- a/.github/workflows/flake_vendorhash.yaml +++ b/.github/workflows/flake_vendorhash.yaml @@ -117,14 +117,10 @@ jobs: echo "body=$(realpath body)" >> "$GITHUB_OUTPUT" - name: Commit run: | - export GPG_PASS="${{ secrets.OCMBOT_SIGNING_KEY_PASS }}" + export GPG_PASS= cat << EOF >> gpg-wrapper #!/bin/bash - pflag="" - if [[ -n "$GPG_PASS" ]]; then - pflag="--passphrase ${GPG_PASS}" - fi - gpg --yes --batch $pflag --pinentry-mode loopback $@ <&0 + gpg --passphrase "${{ secrets.OCMBOT_SIGNING_KEY_PASS }}" --yes --batch $pflag --pinentry-mode loopback $@ <&0 exit $? EOF chmod +x gpg-wrapper