File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Fix GPG Agent Issue
22
33on :
4- push :
5- branches : [ TECHOPS-18898-pub ]
4+ pull_request :
5+ branches : ["master" ]
66
77jobs :
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
You can’t perform that action at this time.
0 commit comments