Skip to content

Commit a070a17

Browse files
ldenningtondscho
authored andcommitted
build-git-installers: publish gpg public key
Update build-git-installers workflow to publish `microsoft/git`'s GPG public key as part of each release. Add explanation for how to use this key to verify the Debian package's signature to the README.
1 parent 88fc5e0 commit a070a17

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/build-git-installers.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,10 @@ jobs:
587587
- create-macos-artifacts
588588
- windows_artifacts
589589
- prereqs
590+
env:
591+
AZURE_VAULT: ${{ secrets.AZURE_VAULT }}
592+
GPG_PUBLIC_KEY_SECRET_NAME: ${{ secrets.GPG_PUBLIC_KEY_SECRET_NAME }}
593+
environment: release
590594
if: |
591595
success() ||
592596
(needs.create-linux-artifacts.result == 'skipped' &&
@@ -616,6 +620,19 @@ jobs:
616620
with:
617621
name: linux-artifacts
618622
path: deb-package
623+
624+
- name: Log into Azure
625+
uses: azure/login@v1
626+
with:
627+
creds: ${{ secrets.AZURE_CREDENTIALS }}
628+
629+
- name: Download GPG public key signature file
630+
run: |
631+
az keyvault secret show --name "$GPG_PUBLIC_KEY_SECRET_NAME" \
632+
--vault-name "$AZURE_VAULT" --query "value" \
633+
| sed -e 's/^"//' -e 's/"$//' | base64 -d >msft-git-public.asc
634+
mv msft-git-public.asc deb-package
635+
619636
- uses: actions/github-script@v6
620637
with:
621638
script: |

0 commit comments

Comments
 (0)