Skip to content

Commit 3f74c64

Browse files
authored
chore: add ssh key for signin commit (#2340)
1 parent 18d2bcd commit 3f74c64

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/deploy-package.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ jobs:
1515
fetch-depth: '0'
1616
persist-credentials: false
1717
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
18+
19+
- name: Setup SSH signing
20+
run: |
21+
mkdir -p ~/.ssh
22+
echo "${{ secrets.SSH_SIGNING_PRIVATE_KEY }}" > ~/.ssh/signing_key
23+
chmod 600 ~/.ssh/signing_key
24+
echo "${{ secrets.SSH_SIGNING_PUBLIC_KEY }}" > ~/.ssh/signing_key.pub
25+
chmod 644 ~/.ssh/signing_key.pub
26+
git config --global gpg.format ssh
27+
git config --global user.signingkey ~/.ssh/signing_key.pub
28+
git config --global commit.gpgsign true
29+
git config --global tag.gpgsign true
30+
1831
- name: Git Identity
1932
run: |
2033
git config --global user.name 'scaleway-bot'

0 commit comments

Comments
 (0)