Skip to content

Commit cca0446

Browse files
ldenningtonmjcheetham
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 9a2ab21 commit cca0446

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,16 @@ jobs:
635635
runs-on: ubuntu-latest
636636
permissions:
637637
contents: write
638+
id-token: write # required for Azure login via OIDC
638639
needs:
639640
- create-linux-artifacts
640641
- create-macos-artifacts
641642
- windows_artifacts
642643
- prereqs
644+
env:
645+
AZURE_VAULT: ${{ secrets.AZURE_VAULT }}
646+
GPG_PUBLIC_KEY_SECRET_NAME: ${{ secrets.GPG_PUBLIC_KEY_SECRET_NAME }}
647+
environment: release
643648
if: |
644649
success() ||
645650
(needs.create-linux-artifacts.result == 'skipped' &&
@@ -682,6 +687,20 @@ jobs:
682687
name: linux-artifacts
683688
path: deb-package
684689

690+
- name: Log into Azure
691+
uses: azure/login@v2
692+
with:
693+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
694+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
695+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
696+
697+
- name: Download GPG public key signature file
698+
run: |
699+
az keyvault secret show --name "$GPG_PUBLIC_KEY_SECRET_NAME" \
700+
--vault-name "$AZURE_VAULT" --query "value" --output tsv |
701+
base64 -d >msft-git-public.asc
702+
mv msft-git-public.asc deb-package
703+
685704
- uses: actions/github-script@v6
686705
with:
687706
script: |

0 commit comments

Comments
 (0)