Skip to content

Commit 003f505

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

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
RELEASE_TOKEN: ${{ secrets.PUBLIC_RELEASES_TOKEN }}
2929
RELEASE_ACTOR_GPG_PRIVATE_KEY: ${{ secrets.PUBLIC_RELEASES_GPG_PRIVATE_KEY }}
3030
RELEASE_ACTOR_GPG_PASSPHRASE: ${{ secrets.PUBLIC_RELEASES_GPG_PASSPHRASE }}
31+
RELEASE_ACTOR_GPG_KEY_FINGERPRINT: ${{ secrets.PUBLIC_RELEASES_GPG_FINGERPRINT }}
3132

3233
pypi-publish:
3334
name: Publish to PyPI
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Fix GPG Agent Issue
2+
3+
on:
4+
push:
5+
branches: [ TECHOPS-18898-pub ]
6+
7+
jobs:
8+
test-gpg-fix:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
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+
24+
- name: Import GPG key
25+
uses: crazy-max/ghaction-import-gpg@v6.1.0
26+
with:
27+
gpg_private_key: ${{ secrets.RELEASE_ACTOR_GPG_PRIVATE_KEY }}
28+
passphrase: ${{ secrets.RELEASE_ACTOR_GPG_PASSPHRASE }}
29+
git_config_global: true
30+
git_user_signingkey: true
31+
git_commit_gpgsign: true

0 commit comments

Comments
 (0)