File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ jobs:
2121 token : ${{ secrets.GH_TOKEN }}
2222 - run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2323
24- - name : Import GPG key
24+ - name : Configure SSH signing
2525 run : |
26- echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
27- GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format=long | grep sec | head -n1 | awk '{print $2}' | cut -d'/' -f2)
28- git config --global user.signingkey "$GPG_KEY_ID"
26+ mkdir -p ~/.ssh
27+ echo "${{ secrets.SSH_SIGNING_PRIVATE_KEY }}" > ~/.ssh/signing_key
28+ chmod 600 ~/.ssh/signing_key
29+ git config --global gpg.format ssh
30+ git config --global user.signingkey ~/.ssh/signing_key
2931 git config --global commit.gpgsign true
3032 git config --global tag.gpgsign true
31- env :
32- GPG_TTY : $(tty)
3333
3434 - name : Git Identity
3535 run : |
You can’t perform that action at this time.
0 commit comments