Skip to content

Commit 12548d9

Browse files
committed
chore(TECHOPS-18898): use gpg key fingerprint
1 parent 003f505 commit 12548d9

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
11
name: Fix GPG Agent Issue
22

33
on:
4-
push:
5-
branches: [ TECHOPS-18898-pub ]
4+
pull_request:
5+
branches: ["master"]
66

77
jobs:
88
test-gpg-fix:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
1212

13-
- name: Start GPG Agent
14-
run: |
15-
mkdir -p ~/.gnupg
16-
chmod 700 ~/.gnupg
17-
echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf
18-
echo "pinentry-mode loopback" > ~/.gnupg/gpg.conf
19-
gpgconf --kill gpg-agent
20-
gpgconf --launch gpg-agent
21-
export GPG_TTY=$(tty)
22-
echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
23-
2413
- name: Import GPG key
2514
uses: crazy-max/ghaction-import-gpg@v6.1.0
2615
with:
2716
gpg_private_key: ${{ secrets.RELEASE_ACTOR_GPG_PRIVATE_KEY }}
2817
passphrase: ${{ secrets.RELEASE_ACTOR_GPG_PASSPHRASE }}
18+
fingerprint: ${{ secrets.RELEASE_ACTOR_GPG_KEY_FINGERPRINT }}
2919
git_config_global: true
3020
git_user_signingkey: true
3121
git_commit_gpgsign: true

0 commit comments

Comments
 (0)